UFCData 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2026 Nathee Thiensirisak
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ufcdata-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: UFCData
3
+ Version: 0.1.1
4
+ Summary: Obtain UFC data and functions to manipulate it
5
+ Requires-Python: >=3.10
6
+ License-File: LICENSE.md
7
+ Requires-Dist: huggingface-hub
8
+ Requires-Dist: pandas
9
+ Requires-Dist: numpy
10
+ Requires-Dist: glicko2
11
+ Dynamic: license-file
File without changes
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.4
2
+ Name: UFCData
3
+ Version: 0.1.1
4
+ Summary: Obtain UFC data and functions to manipulate it
5
+ Requires-Python: >=3.10
6
+ License-File: LICENSE.md
7
+ Requires-Dist: huggingface-hub
8
+ Requires-Dist: pandas
9
+ Requires-Dist: numpy
10
+ Requires-Dist: glicko2
11
+ Dynamic: license-file
@@ -0,0 +1,15 @@
1
+ LICENSE.md
2
+ README.md
3
+ pyproject.toml
4
+ UFCData.egg-info/PKG-INFO
5
+ UFCData.egg-info/SOURCES.txt
6
+ UFCData.egg-info/dependency_links.txt
7
+ UFCData.egg-info/requires.txt
8
+ UFCData.egg-info/top_level.txt
9
+ ufcdata/__init__.py
10
+ ufcdata/data.py
11
+ ufcdata.egg-info/PKG-INFO
12
+ ufcdata.egg-info/SOURCES.txt
13
+ ufcdata.egg-info/dependency_links.txt
14
+ ufcdata.egg-info/requires.txt
15
+ ufcdata.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ huggingface-hub
2
+ pandas
3
+ numpy
4
+ glicko2
@@ -0,0 +1 @@
1
+ ufcdata
@@ -0,0 +1,12 @@
1
+ [project]
2
+ name = "UFCData"
3
+ version = "0.1.1"
4
+ description = "Obtain UFC data and functions to manipulate it"
5
+ requires-python = ">=3.10"
6
+
7
+ dependencies = [
8
+ "huggingface-hub",
9
+ "pandas",
10
+ "numpy",
11
+ "glicko2",
12
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ from .data import get_data
@@ -0,0 +1,29 @@
1
+ from huggingface_hub import hf_hub_download
2
+ import pickle
3
+ import logging
4
+
5
+ def get_data():
6
+
7
+ logging.getLogger("huggingface_hub").setLevel(logging.ERROR)
8
+
9
+ file = hf_hub_download(
10
+ repo_id="JunoML/MMA",
11
+ filename="ufc_data.pkl",
12
+ repo_type="dataset")
13
+
14
+ with open(file, "rb") as f:
15
+ ufc_data = pickle.load(f)
16
+
17
+ keys = list(ufc_data.keys())
18
+ print("Data Obtained")
19
+ print()
20
+ print('To access a specific dataframe, use its corresponding key below')
21
+ print(keys)
22
+ print()
23
+ print("For example:")
24
+ print("data = get_data()")
25
+ print("past_events = data['past_events'].copy()")
26
+
27
+ return ufc_data
28
+
29
+ test = get_data()