added poetry and gitignore
Browse files- .gitignore +76 -0
- poetry.lock +493 -0
- pyproject.toml +16 -0
- test.py +8 -0
.gitignore
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Created by https://www.toptal.com/developers/gitignore/api/pythonvanilla
|
2 |
+
# Edit at https://www.toptal.com/developers/gitignore?templates=pythonvanilla
|
3 |
+
|
4 |
+
### PythonVanilla ###
|
5 |
+
# Byte-compiled / optimized / DLL files
|
6 |
+
__pycache__/
|
7 |
+
*.py[cod]
|
8 |
+
*$py.class
|
9 |
+
|
10 |
+
# C extensions
|
11 |
+
*.so
|
12 |
+
|
13 |
+
# Distribution / packaging
|
14 |
+
.Python
|
15 |
+
build/
|
16 |
+
develop-eggs/
|
17 |
+
dist/
|
18 |
+
downloads/
|
19 |
+
eggs/
|
20 |
+
.eggs/
|
21 |
+
lib/
|
22 |
+
lib64/
|
23 |
+
parts/
|
24 |
+
sdist/
|
25 |
+
var/
|
26 |
+
wheels/
|
27 |
+
share/python-wheels/
|
28 |
+
*.egg-info/
|
29 |
+
.installed.cfg
|
30 |
+
*.egg
|
31 |
+
MANIFEST
|
32 |
+
|
33 |
+
# Installer logs
|
34 |
+
pip-log.txt
|
35 |
+
pip-delete-this-directory.txt
|
36 |
+
|
37 |
+
# Unit test / coverage reports
|
38 |
+
htmlcov/
|
39 |
+
.tox/
|
40 |
+
.nox/
|
41 |
+
.coverage
|
42 |
+
.coverage.*
|
43 |
+
.cache
|
44 |
+
nosetests.xml
|
45 |
+
coverage.xml
|
46 |
+
*.cover
|
47 |
+
*.py,cover
|
48 |
+
.hypothesis/
|
49 |
+
.pytest_cache/
|
50 |
+
cover/
|
51 |
+
|
52 |
+
# Translations
|
53 |
+
*.mo
|
54 |
+
*.pot
|
55 |
+
|
56 |
+
# pyenv
|
57 |
+
# For a library or package, you might want to ignore these files since the code is
|
58 |
+
# intended to run in multiple environments; otherwise, check them in:
|
59 |
+
# .python-version
|
60 |
+
|
61 |
+
# pipenv
|
62 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
63 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
64 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
65 |
+
# install all needed dependencies.
|
66 |
+
#Pipfile.lock
|
67 |
+
|
68 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
69 |
+
__pypackages__/
|
70 |
+
|
71 |
+
|
72 |
+
# env
|
73 |
+
env/
|
74 |
+
.env
|
75 |
+
|
76 |
+
# End of https://www.toptal.com/developers/gitignore/api/pythonvanilla
|
poetry.lock
ADDED
@@ -0,0 +1,493 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[[package]]
|
2 |
+
name = "aiohttp"
|
3 |
+
version = "3.9.3"
|
4 |
+
description = "Async http client/server framework (asyncio)"
|
5 |
+
category = "main"
|
6 |
+
optional = false
|
7 |
+
python-versions = ">=3.8"
|
8 |
+
|
9 |
+
[package.dependencies]
|
10 |
+
aiosignal = ">=1.1.2"
|
11 |
+
async-timeout = {version = ">=4.0,<5.0", markers = "python_version < \"3.11\""}
|
12 |
+
attrs = ">=17.3.0"
|
13 |
+
frozenlist = ">=1.1.1"
|
14 |
+
multidict = ">=4.5,<7.0"
|
15 |
+
yarl = ">=1.0,<2.0"
|
16 |
+
|
17 |
+
[package.extras]
|
18 |
+
speedups = ["brotlicffi", "brotli", "aiodns"]
|
19 |
+
|
20 |
+
[[package]]
|
21 |
+
name = "aiosignal"
|
22 |
+
version = "1.3.1"
|
23 |
+
description = "aiosignal: a list of registered asynchronous callbacks"
|
24 |
+
category = "main"
|
25 |
+
optional = false
|
26 |
+
python-versions = ">=3.7"
|
27 |
+
|
28 |
+
[package.dependencies]
|
29 |
+
frozenlist = ">=1.1.0"
|
30 |
+
|
31 |
+
[[package]]
|
32 |
+
name = "async-timeout"
|
33 |
+
version = "4.0.3"
|
34 |
+
description = "Timeout context manager for asyncio programs"
|
35 |
+
category = "main"
|
36 |
+
optional = false
|
37 |
+
python-versions = ">=3.7"
|
38 |
+
|
39 |
+
[[package]]
|
40 |
+
name = "attrs"
|
41 |
+
version = "23.2.0"
|
42 |
+
description = "Classes Without Boilerplate"
|
43 |
+
category = "main"
|
44 |
+
optional = false
|
45 |
+
python-versions = ">=3.7"
|
46 |
+
|
47 |
+
[package.extras]
|
48 |
+
cov = ["attrs", "coverage[toml] (>=5.3)"]
|
49 |
+
dev = ["attrs", "pre-commit"]
|
50 |
+
docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"]
|
51 |
+
tests = ["attrs", "zope-interface"]
|
52 |
+
tests-mypy = ["mypy (>=1.6)", "pytest-mypy-plugins"]
|
53 |
+
tests-no-zope = ["attrs", "cloudpickle", "hypothesis", "pympler", "pytest-xdist", "pytest (>=4.3.0)"]
|
54 |
+
|
55 |
+
[[package]]
|
56 |
+
name = "certifi"
|
57 |
+
version = "2024.2.2"
|
58 |
+
description = "Python package for providing Mozilla's CA Bundle."
|
59 |
+
category = "main"
|
60 |
+
optional = false
|
61 |
+
python-versions = ">=3.6"
|
62 |
+
|
63 |
+
[[package]]
|
64 |
+
name = "charset-normalizer"
|
65 |
+
version = "3.3.2"
|
66 |
+
description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
|
67 |
+
category = "main"
|
68 |
+
optional = false
|
69 |
+
python-versions = ">=3.7.0"
|
70 |
+
|
71 |
+
[[package]]
|
72 |
+
name = "colorama"
|
73 |
+
version = "0.4.6"
|
74 |
+
description = "Cross-platform colored terminal text."
|
75 |
+
category = "main"
|
76 |
+
optional = false
|
77 |
+
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
|
78 |
+
|
79 |
+
[[package]]
|
80 |
+
name = "datasets"
|
81 |
+
version = "2.17.1"
|
82 |
+
description = "HuggingFace community-driven open-source library of datasets"
|
83 |
+
category = "main"
|
84 |
+
optional = false
|
85 |
+
python-versions = ">=3.8.0"
|
86 |
+
|
87 |
+
[package.dependencies]
|
88 |
+
aiohttp = "*"
|
89 |
+
dill = ">=0.3.0,<0.3.9"
|
90 |
+
filelock = "*"
|
91 |
+
fsspec = {version = ">=2023.1.0,<=2023.10.0", extras = ["http"]}
|
92 |
+
huggingface-hub = ">=0.19.4"
|
93 |
+
multiprocess = "*"
|
94 |
+
numpy = ">=1.17"
|
95 |
+
packaging = "*"
|
96 |
+
pandas = "*"
|
97 |
+
pyarrow = ">=12.0.0"
|
98 |
+
pyarrow-hotfix = "*"
|
99 |
+
pyyaml = ">=5.1"
|
100 |
+
requests = ">=2.19.0"
|
101 |
+
tqdm = ">=4.62.1"
|
102 |
+
xxhash = "*"
|
103 |
+
|
104 |
+
[package.extras]
|
105 |
+
apache-beam = ["apache-beam (>=2.26.0)"]
|
106 |
+
audio = ["soundfile (>=0.12.1)", "librosa"]
|
107 |
+
benchmarks = ["tensorflow (==2.12.0)", "torch (==2.0.1)", "transformers (==4.30.1)"]
|
108 |
+
dev = ["absl-py", "joblib (<1.3.0)", "joblibspark", "pytest", "pytest-datadir", "pytest-xdist", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.6.4)", "lz4", "pyspark (>=3.4)", "py7zr", "rarfile (>=4.0)", "sqlalchemy", "s3fs (>=2021.11.1)", "tiktoken", "torch (>=2.0.0)", "soundfile (>=0.12.1)", "transformers", "typing-extensions (>=4.6.1)", "zstandard", "Pillow (>=6.2.1)", "librosa", "ruff (>=0.1.5)", "s3fs", "torch", "tensorflow (>=2.3,!=2.6.0,!=2.6.1)", "tensorflow (>=2.2.0,!=2.6.0,!=2.6.1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "apache-beam (>=2.26.0)", "tensorflow-macos"]
|
109 |
+
docs = ["s3fs", "transformers", "torch", "tensorflow (>=2.2.0,!=2.6.0,!=2.6.1)", "tensorflow-macos"]
|
110 |
+
jax = ["jax (>=0.3.14)", "jaxlib (>=0.3.14)"]
|
111 |
+
metrics-tests = ["accelerate", "bert-score (>=0.3.6)", "jiwer", "langdetect", "mauve-text", "nltk", "rouge-score", "sacrebleu", "sacremoses", "scikit-learn", "scipy", "sentencepiece", "seqeval", "spacy (>=3.0.0)", "tldextract", "toml (>=0.10.1)", "typer (<0.5.0)", "requests-file (>=1.5.1)", "tldextract (>=3.1.0)", "texttable (>=1.6.3)", "Werkzeug (>=1.0.1)", "six (>=1.15.0,<1.16.0)"]
|
112 |
+
quality = ["ruff (>=0.1.5)"]
|
113 |
+
s3 = ["s3fs"]
|
114 |
+
tensorflow = ["tensorflow (>=2.2.0,!=2.6.0,!=2.6.1)", "tensorflow-macos"]
|
115 |
+
tensorflow_gpu = ["tensorflow-gpu (>=2.2.0,!=2.6.0,!=2.6.1)"]
|
116 |
+
tests = ["absl-py", "joblib (<1.3.0)", "joblibspark", "pytest", "pytest-datadir", "pytest-xdist", "elasticsearch (<8.0.0)", "faiss-cpu (>=1.6.4)", "lz4", "pyspark (>=3.4)", "py7zr", "rarfile (>=4.0)", "sqlalchemy", "s3fs (>=2021.11.1)", "tiktoken", "torch (>=2.0.0)", "soundfile (>=0.12.1)", "transformers", "typing-extensions (>=4.6.1)", "zstandard", "Pillow (>=6.2.1)", "librosa", "tensorflow (>=2.3,!=2.6.0,!=2.6.1)", "jax (>=0.3.14)", "jaxlib (>=0.3.14)", "apache-beam (>=2.26.0)", "tensorflow-macos"]
|
117 |
+
torch = ["torch"]
|
118 |
+
vision = ["Pillow (>=6.2.1)"]
|
119 |
+
|
120 |
+
[[package]]
|
121 |
+
name = "dill"
|
122 |
+
version = "0.3.8"
|
123 |
+
description = "serialize all of Python"
|
124 |
+
category = "main"
|
125 |
+
optional = false
|
126 |
+
python-versions = ">=3.8"
|
127 |
+
|
128 |
+
[package.extras]
|
129 |
+
graph = ["objgraph (>=1.7.2)"]
|
130 |
+
profile = ["gprof2dot (>=2022.7.29)"]
|
131 |
+
|
132 |
+
[[package]]
|
133 |
+
name = "filelock"
|
134 |
+
version = "3.13.1"
|
135 |
+
description = "A platform independent file lock."
|
136 |
+
category = "main"
|
137 |
+
optional = false
|
138 |
+
python-versions = ">=3.8"
|
139 |
+
|
140 |
+
[package.extras]
|
141 |
+
docs = ["furo (>=2023.9.10)", "sphinx-autodoc-typehints (>=1.24)", "sphinx (>=7.2.6)"]
|
142 |
+
testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)", "pytest (>=7.4.3)"]
|
143 |
+
typing = ["typing-extensions (>=4.8)"]
|
144 |
+
|
145 |
+
[[package]]
|
146 |
+
name = "frozenlist"
|
147 |
+
version = "1.4.1"
|
148 |
+
description = "A list-like structure which implements collections.abc.MutableSequence"
|
149 |
+
category = "main"
|
150 |
+
optional = false
|
151 |
+
python-versions = ">=3.8"
|
152 |
+
|
153 |
+
[[package]]
|
154 |
+
name = "fsspec"
|
155 |
+
version = "2023.10.0"
|
156 |
+
description = "File-system specification"
|
157 |
+
category = "main"
|
158 |
+
optional = false
|
159 |
+
python-versions = ">=3.8"
|
160 |
+
|
161 |
+
[package.dependencies]
|
162 |
+
aiohttp = {version = "<4.0.0a0 || >4.0.0a0,<4.0.0a1 || >4.0.0a1", optional = true, markers = "extra == \"http\""}
|
163 |
+
requests = {version = "*", optional = true, markers = "extra == \"http\""}
|
164 |
+
|
165 |
+
[package.extras]
|
166 |
+
abfs = ["adlfs"]
|
167 |
+
adl = ["adlfs"]
|
168 |
+
arrow = ["pyarrow (>=1)"]
|
169 |
+
dask = ["dask", "distributed"]
|
170 |
+
devel = ["pytest", "pytest-cov"]
|
171 |
+
dropbox = ["dropboxdrivefs", "requests", "dropbox"]
|
172 |
+
full = ["adlfs", "aiohttp (!=4.0.0a0,!=4.0.0a1)", "dask", "distributed", "dropbox", "dropboxdrivefs", "fusepy", "gcsfs", "libarchive-c", "ocifs", "panel", "paramiko", "pyarrow (>=1)", "pygit2", "requests", "s3fs", "smbprotocol", "tqdm"]
|
173 |
+
fuse = ["fusepy"]
|
174 |
+
gcs = ["gcsfs"]
|
175 |
+
git = ["pygit2"]
|
176 |
+
github = ["requests"]
|
177 |
+
gs = ["gcsfs"]
|
178 |
+
gui = ["panel"]
|
179 |
+
hdfs = ["pyarrow (>=1)"]
|
180 |
+
http = ["requests", "aiohttp (!=4.0.0a0,!=4.0.0a1)"]
|
181 |
+
libarchive = ["libarchive-c"]
|
182 |
+
oci = ["ocifs"]
|
183 |
+
s3 = ["s3fs"]
|
184 |
+
sftp = ["paramiko"]
|
185 |
+
smb = ["smbprotocol"]
|
186 |
+
ssh = ["paramiko"]
|
187 |
+
tqdm = ["tqdm"]
|
188 |
+
|
189 |
+
[[package]]
|
190 |
+
name = "huggingface-hub"
|
191 |
+
version = "0.21.2"
|
192 |
+
description = "Client library to download and publish models, datasets and other repos on the huggingface.co hub"
|
193 |
+
category = "main"
|
194 |
+
optional = false
|
195 |
+
python-versions = ">=3.8.0"
|
196 |
+
|
197 |
+
[package.dependencies]
|
198 |
+
filelock = "*"
|
199 |
+
fsspec = ">=2023.5.0"
|
200 |
+
packaging = ">=20.9"
|
201 |
+
pyyaml = ">=5.1"
|
202 |
+
requests = "*"
|
203 |
+
tqdm = ">=4.42.1"
|
204 |
+
typing-extensions = ">=3.7.4.3"
|
205 |
+
|
206 |
+
[package.extras]
|
207 |
+
all = ["InquirerPy (==0.3.4)", "aiohttp", "jedi", "jinja2", "pytest", "pytest-cov", "pytest-env", "pytest-xdist", "pytest-vcr", "pytest-asyncio", "pytest-rerunfailures", "urllib3 (<2.0)", "soundfile", "pillow", "gradio", "numpy", "ruff (>=0.1.3)", "mypy (==1.5.1)", "typing-extensions (>=4.8.0)", "types-pyyaml", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "pydantic (>1.1,<2.0)", "pydantic (>1.1,<3.0)"]
|
208 |
+
cli = ["InquirerPy (==0.3.4)"]
|
209 |
+
dev = ["InquirerPy (==0.3.4)", "aiohttp", "jedi", "jinja2", "pytest", "pytest-cov", "pytest-env", "pytest-xdist", "pytest-vcr", "pytest-asyncio", "pytest-rerunfailures", "urllib3 (<2.0)", "soundfile", "pillow", "gradio", "numpy", "ruff (>=0.1.3)", "mypy (==1.5.1)", "typing-extensions (>=4.8.0)", "types-pyyaml", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3", "pydantic (>1.1,<2.0)", "pydantic (>1.1,<3.0)"]
|
210 |
+
fastai = ["toml", "fastai (>=2.4)", "fastcore (>=1.3.27)"]
|
211 |
+
hf_transfer = ["hf-transfer (>=0.1.4)"]
|
212 |
+
inference = ["aiohttp", "pydantic (>1.1,<2.0)", "pydantic (>1.1,<3.0)"]
|
213 |
+
quality = ["ruff (>=0.1.3)", "mypy (==1.5.1)"]
|
214 |
+
tensorflow = ["tensorflow", "pydot", "graphviz"]
|
215 |
+
testing = ["InquirerPy (==0.3.4)", "aiohttp", "jedi", "jinja2", "pytest", "pytest-cov", "pytest-env", "pytest-xdist", "pytest-vcr", "pytest-asyncio", "pytest-rerunfailures", "urllib3 (<2.0)", "soundfile", "pillow", "gradio", "numpy", "pydantic (>1.1,<2.0)", "pydantic (>1.1,<3.0)"]
|
216 |
+
torch = ["torch", "safetensors"]
|
217 |
+
typing = ["typing-extensions (>=4.8.0)", "types-pyyaml", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3"]
|
218 |
+
|
219 |
+
[[package]]
|
220 |
+
name = "idna"
|
221 |
+
version = "3.6"
|
222 |
+
description = "Internationalized Domain Names in Applications (IDNA)"
|
223 |
+
category = "main"
|
224 |
+
optional = false
|
225 |
+
python-versions = ">=3.5"
|
226 |
+
|
227 |
+
[[package]]
|
228 |
+
name = "multidict"
|
229 |
+
version = "6.0.5"
|
230 |
+
description = "multidict implementation"
|
231 |
+
category = "main"
|
232 |
+
optional = false
|
233 |
+
python-versions = ">=3.7"
|
234 |
+
|
235 |
+
[[package]]
|
236 |
+
name = "multiprocess"
|
237 |
+
version = "0.70.16"
|
238 |
+
description = "better multiprocessing and multithreading in Python"
|
239 |
+
category = "main"
|
240 |
+
optional = false
|
241 |
+
python-versions = ">=3.8"
|
242 |
+
|
243 |
+
[package.dependencies]
|
244 |
+
dill = ">=0.3.8"
|
245 |
+
|
246 |
+
[[package]]
|
247 |
+
name = "numpy"
|
248 |
+
version = "1.26.4"
|
249 |
+
description = "Fundamental package for array computing in Python"
|
250 |
+
category = "main"
|
251 |
+
optional = false
|
252 |
+
python-versions = ">=3.9"
|
253 |
+
|
254 |
+
[[package]]
|
255 |
+
name = "packaging"
|
256 |
+
version = "23.2"
|
257 |
+
description = "Core utilities for Python packages"
|
258 |
+
category = "main"
|
259 |
+
optional = false
|
260 |
+
python-versions = ">=3.7"
|
261 |
+
|
262 |
+
[[package]]
|
263 |
+
name = "pandas"
|
264 |
+
version = "2.2.1"
|
265 |
+
description = "Powerful data structures for data analysis, time series, and statistics"
|
266 |
+
category = "main"
|
267 |
+
optional = false
|
268 |
+
python-versions = ">=3.9"
|
269 |
+
|
270 |
+
[package.dependencies]
|
271 |
+
numpy = [
|
272 |
+
{version = ">=1.22.4,<2", markers = "python_version < \"3.11\""},
|
273 |
+
{version = ">=1.23.2,<2", markers = "python_version == \"3.11\""},
|
274 |
+
{version = ">=1.26.0,<2", markers = "python_version >= \"3.12\""},
|
275 |
+
]
|
276 |
+
python-dateutil = ">=2.8.2"
|
277 |
+
pytz = ">=2020.1"
|
278 |
+
tzdata = ">=2022.7"
|
279 |
+
|
280 |
+
[package.extras]
|
281 |
+
test = ["hypothesis (>=6.46.1)", "pytest (>=7.3.2)", "pytest-xdist (>=2.2.0)"]
|
282 |
+
pyarrow = ["pyarrow (>=10.0.1)"]
|
283 |
+
performance = ["bottleneck (>=1.3.6)", "numba (>=0.56.4)", "numexpr (>=2.8.4)"]
|
284 |
+
computation = ["scipy (>=1.10.0)", "xarray (>=2022.12.0)"]
|
285 |
+
fss = ["fsspec (>=2022.11.0)"]
|
286 |
+
aws = ["s3fs (>=2022.11.0)"]
|
287 |
+
gcp = ["gcsfs (>=2022.11.0)", "pandas-gbq (>=0.19.0)"]
|
288 |
+
excel = ["odfpy (>=1.4.1)", "openpyxl (>=3.1.0)", "python-calamine (>=0.1.7)", "pyxlsb (>=1.0.10)", "xlrd (>=2.0.1)", "xlsxwriter (>=3.0.5)"]
|
289 |
+
parquet = ["pyarrow (>=10.0.1)"]
|
290 |
+
feather = ["pyarrow (>=10.0.1)"]
|
291 |
+
hdf5 = ["tables (>=3.8.0)"]
|
292 |
+
spss = ["pyreadstat (>=1.2.0)"]
|
293 |
+
postgresql = ["SQLAlchemy (>=2.0.0)", "psycopg2 (>=2.9.6)", "adbc-driver-postgresql (>=0.8.0)"]
|
294 |
+
mysql = ["SQLAlchemy (>=2.0.0)", "pymysql (>=1.0.2)"]
|
295 |
+
sql-other = ["SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "adbc-driver-sqlite (>=0.8.0)"]
|
296 |
+
html = ["beautifulsoup4 (>=4.11.2)", "html5lib (>=1.1)", "lxml (>=4.9.2)"]
|
297 |
+
xml = ["lxml (>=4.9.2)"]
|
298 |
+
plot = ["matplotlib (>=3.6.3)"]
|
299 |
+
output-formatting = ["jinja2 (>=3.1.2)", "tabulate (>=0.9.0)"]
|
300 |
+
clipboard = ["PyQt5 (>=5.15.9)", "qtpy (>=2.3.0)"]
|
301 |
+
compression = ["zstandard (>=0.19.0)"]
|
302 |
+
consortium-standard = ["dataframe-api-compat (>=0.1.7)"]
|
303 |
+
all = ["adbc-driver-postgresql (>=0.8.0)", "adbc-driver-sqlite (>=0.8.0)", "beautifulsoup4 (>=4.11.2)", "bottleneck (>=1.3.6)", "dataframe-api-compat (>=0.1.7)", "fastparquet (>=2022.12.0)", "fsspec (>=2022.11.0)", "gcsfs (>=2022.11.0)", "html5lib (>=1.1)", "hypothesis (>=6.46.1)", "jinja2 (>=3.1.2)", "lxml (>=4.9.2)", "matplotlib (>=3.6.3)", "numba (>=0.56.4)", "numexpr (>=2.8.4)", "odfpy (>=1.4.1)", "openpyxl (>=3.1.0)", "pandas-gbq (>=0.19.0)", "psycopg2 (>=2.9.6)", "pyarrow (>=10.0.1)", "pymysql (>=1.0.2)", "PyQt5 (>=5.15.9)", "pyreadstat (>=1.2.0)", "pytest (>=7.3.2)", "pytest-xdist (>=2.2.0)", "python-calamine (>=0.1.7)", "pyxlsb (>=1.0.10)", "qtpy (>=2.3.0)", "scipy (>=1.10.0)", "s3fs (>=2022.11.0)", "SQLAlchemy (>=2.0.0)", "tables (>=3.8.0)", "tabulate (>=0.9.0)", "xarray (>=2022.12.0)", "xlrd (>=2.0.1)", "xlsxwriter (>=3.0.5)", "zstandard (>=0.19.0)"]
|
304 |
+
|
305 |
+
[[package]]
|
306 |
+
name = "pyarrow"
|
307 |
+
version = "15.0.0"
|
308 |
+
description = "Python library for Apache Arrow"
|
309 |
+
category = "main"
|
310 |
+
optional = false
|
311 |
+
python-versions = ">=3.8"
|
312 |
+
|
313 |
+
[package.dependencies]
|
314 |
+
numpy = ">=1.16.6,<2"
|
315 |
+
|
316 |
+
[[package]]
|
317 |
+
name = "pyarrow-hotfix"
|
318 |
+
version = "0.6"
|
319 |
+
description = ""
|
320 |
+
category = "main"
|
321 |
+
optional = false
|
322 |
+
python-versions = ">=3.5"
|
323 |
+
|
324 |
+
[[package]]
|
325 |
+
name = "python-dateutil"
|
326 |
+
version = "2.8.2"
|
327 |
+
description = "Extensions to the standard Python datetime module"
|
328 |
+
category = "main"
|
329 |
+
optional = false
|
330 |
+
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
|
331 |
+
|
332 |
+
[package.dependencies]
|
333 |
+
six = ">=1.5"
|
334 |
+
|
335 |
+
[[package]]
|
336 |
+
name = "python-dotenv"
|
337 |
+
version = "1.0.1"
|
338 |
+
description = "Read key-value pairs from a .env file and set them as environment variables"
|
339 |
+
category = "dev"
|
340 |
+
optional = false
|
341 |
+
python-versions = ">=3.8"
|
342 |
+
|
343 |
+
[package.extras]
|
344 |
+
cli = ["click (>=5.0)"]
|
345 |
+
|
346 |
+
[[package]]
|
347 |
+
name = "pytz"
|
348 |
+
version = "2024.1"
|
349 |
+
description = "World timezone definitions, modern and historical"
|
350 |
+
category = "main"
|
351 |
+
optional = false
|
352 |
+
python-versions = "*"
|
353 |
+
|
354 |
+
[[package]]
|
355 |
+
name = "pyyaml"
|
356 |
+
version = "6.0.1"
|
357 |
+
description = "YAML parser and emitter for Python"
|
358 |
+
category = "main"
|
359 |
+
optional = false
|
360 |
+
python-versions = ">=3.6"
|
361 |
+
|
362 |
+
[[package]]
|
363 |
+
name = "requests"
|
364 |
+
version = "2.31.0"
|
365 |
+
description = "Python HTTP for Humans."
|
366 |
+
category = "main"
|
367 |
+
optional = false
|
368 |
+
python-versions = ">=3.7"
|
369 |
+
|
370 |
+
[package.dependencies]
|
371 |
+
certifi = ">=2017.4.17"
|
372 |
+
charset-normalizer = ">=2,<4"
|
373 |
+
idna = ">=2.5,<4"
|
374 |
+
urllib3 = ">=1.21.1,<3"
|
375 |
+
|
376 |
+
[package.extras]
|
377 |
+
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
|
378 |
+
use_chardet_on_py3 = ["chardet (>=3.0.2,<6)"]
|
379 |
+
|
380 |
+
[[package]]
|
381 |
+
name = "six"
|
382 |
+
version = "1.16.0"
|
383 |
+
description = "Python 2 and 3 compatibility utilities"
|
384 |
+
category = "main"
|
385 |
+
optional = false
|
386 |
+
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
|
387 |
+
|
388 |
+
[[package]]
|
389 |
+
name = "tqdm"
|
390 |
+
version = "4.66.2"
|
391 |
+
description = "Fast, Extensible Progress Meter"
|
392 |
+
category = "main"
|
393 |
+
optional = false
|
394 |
+
python-versions = ">=3.7"
|
395 |
+
|
396 |
+
[package.dependencies]
|
397 |
+
colorama = {version = "*", markers = "platform_system == \"Windows\""}
|
398 |
+
|
399 |
+
[package.extras]
|
400 |
+
dev = ["pytest (>=6)", "pytest-cov", "pytest-timeout", "pytest-xdist"]
|
401 |
+
notebook = ["ipywidgets (>=6)"]
|
402 |
+
slack = ["slack-sdk"]
|
403 |
+
telegram = ["requests"]
|
404 |
+
|
405 |
+
[[package]]
|
406 |
+
name = "typing-extensions"
|
407 |
+
version = "4.10.0"
|
408 |
+
description = "Backported and Experimental Type Hints for Python 3.8+"
|
409 |
+
category = "main"
|
410 |
+
optional = false
|
411 |
+
python-versions = ">=3.8"
|
412 |
+
|
413 |
+
[[package]]
|
414 |
+
name = "tzdata"
|
415 |
+
version = "2024.1"
|
416 |
+
description = "Provider of IANA time zone data"
|
417 |
+
category = "main"
|
418 |
+
optional = false
|
419 |
+
python-versions = ">=2"
|
420 |
+
|
421 |
+
[[package]]
|
422 |
+
name = "urllib3"
|
423 |
+
version = "2.2.1"
|
424 |
+
description = "HTTP library with thread-safe connection pooling, file post, and more."
|
425 |
+
category = "main"
|
426 |
+
optional = false
|
427 |
+
python-versions = ">=3.8"
|
428 |
+
|
429 |
+
[package.extras]
|
430 |
+
brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"]
|
431 |
+
h2 = ["h2 (>=4,<5)"]
|
432 |
+
socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"]
|
433 |
+
zstd = ["zstandard (>=0.18.0)"]
|
434 |
+
|
435 |
+
[[package]]
|
436 |
+
name = "xxhash"
|
437 |
+
version = "3.4.1"
|
438 |
+
description = "Python binding for xxHash"
|
439 |
+
category = "main"
|
440 |
+
optional = false
|
441 |
+
python-versions = ">=3.7"
|
442 |
+
|
443 |
+
[[package]]
|
444 |
+
name = "yarl"
|
445 |
+
version = "1.9.4"
|
446 |
+
description = "Yet another URL library"
|
447 |
+
category = "main"
|
448 |
+
optional = false
|
449 |
+
python-versions = ">=3.7"
|
450 |
+
|
451 |
+
[package.dependencies]
|
452 |
+
idna = ">=2.0"
|
453 |
+
multidict = ">=4.0"
|
454 |
+
|
455 |
+
[metadata]
|
456 |
+
lock-version = "1.1"
|
457 |
+
python-versions = "^3.10"
|
458 |
+
content-hash = "1d4de576e86471003c78d38bdc9515897b28252158a30231ee437aa6a24028f0"
|
459 |
+
|
460 |
+
[metadata.files]
|
461 |
+
aiohttp = []
|
462 |
+
aiosignal = []
|
463 |
+
async-timeout = []
|
464 |
+
attrs = []
|
465 |
+
certifi = []
|
466 |
+
charset-normalizer = []
|
467 |
+
colorama = []
|
468 |
+
datasets = []
|
469 |
+
dill = []
|
470 |
+
filelock = []
|
471 |
+
frozenlist = []
|
472 |
+
fsspec = []
|
473 |
+
huggingface-hub = []
|
474 |
+
idna = []
|
475 |
+
multidict = []
|
476 |
+
multiprocess = []
|
477 |
+
numpy = []
|
478 |
+
packaging = []
|
479 |
+
pandas = []
|
480 |
+
pyarrow = []
|
481 |
+
pyarrow-hotfix = []
|
482 |
+
python-dateutil = []
|
483 |
+
python-dotenv = []
|
484 |
+
pytz = []
|
485 |
+
pyyaml = []
|
486 |
+
requests = []
|
487 |
+
six = []
|
488 |
+
tqdm = []
|
489 |
+
typing-extensions = []
|
490 |
+
tzdata = []
|
491 |
+
urllib3 = []
|
492 |
+
xxhash = []
|
493 |
+
yarl = []
|
pyproject.toml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.poetry]
|
2 |
+
name = "expirationdate"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = "dataset of expiration dates"
|
5 |
+
authors = ["Diego Muñoz <[email protected]>"]
|
6 |
+
|
7 |
+
[tool.poetry.dependencies]
|
8 |
+
python = "^3.10"
|
9 |
+
datasets = "^2.17.1"
|
10 |
+
|
11 |
+
[tool.poetry.dev-dependencies]
|
12 |
+
python-dotenv = "1.0.1"
|
13 |
+
|
14 |
+
[build-system]
|
15 |
+
requires = ["poetry-core>=1.0.0"]
|
16 |
+
build-backend = "poetry.core.masonry.api"
|
test.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset
|
2 |
+
from dotenv import load_dotenv
|
3 |
+
import os
|
4 |
+
|
5 |
+
load_dotenv()
|
6 |
+
|
7 |
+
LOCAL_PROJECT_PATH = os.getenv('LOCAL_PROJECT_PATH')
|
8 |
+
ds = load_dataset(LOCAL_PROJECT_PATH)
|