atomict 0.1.2__py3-none-any.whl → 0.1.4__py3-none-any.whl

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.
Files changed (88) hide show
  1. atomict/__init__.py +1 -1
  2. atomict/__version__.py +1 -0
  3. atomict/api.py +182 -0
  4. atomict/auth.py +47 -0
  5. atomict/cli/commands/adsorbate.py +183 -0
  6. atomict/cli/commands/ai_assist.py +111 -0
  7. atomict/cli/commands/catalysis.py +171 -0
  8. atomict/cli/commands/common.py +57 -0
  9. atomict/cli/commands/exploration/__init__.py +7 -0
  10. atomict/cli/commands/exploration/soec.py +564 -0
  11. atomict/cli/commands/exploration/sqs.py +440 -0
  12. atomict/cli/commands/helpers.py +74 -0
  13. atomict/cli/commands/k8s.py +211 -0
  14. atomict/cli/commands/login.py +34 -0
  15. atomict/cli/commands/organization.py +76 -0
  16. atomict/cli/commands/project.py +876 -0
  17. atomict/cli/commands/simulation/__init__.py +20 -0
  18. atomict/cli/commands/simulation/catalysis.py +223 -0
  19. atomict/cli/commands/simulation/fhiaims.py +279 -0
  20. atomict/cli/commands/simulation/kpoint.py +380 -0
  21. atomict/cli/commands/simulation/vibes.py +161 -0
  22. atomict/cli/commands/simulation.py +176 -0
  23. atomict/cli/commands/task.py +181 -0
  24. atomict/cli/commands/upload.py +84 -0
  25. atomict/cli/commands/user.py +201 -0
  26. atomict/cli/core/client.py +202 -0
  27. atomict/cli/core/config.py +43 -0
  28. atomict/cli/core/utils.py +32 -0
  29. atomict/cli/main.py +124 -0
  30. atomict/env.py +79 -0
  31. atomict/exceptions.py +12 -0
  32. atomict/infra/distwork/environment.py +26 -0
  33. atomict/infra/distwork/task.py +49 -0
  34. atomict/infra/logging.py +22 -0
  35. atomict/io/cif.py +131 -0
  36. atomict/io/fhiaims.py +24 -0
  37. atomict/io/json.py +22 -0
  38. atomict/io/utils.py +11 -0
  39. atomict/ml/__init__.py +0 -0
  40. atomict/ml/model.py +13 -0
  41. atomict/project/__init__.py +1 -0
  42. atomict/project/link.py +26 -0
  43. atomict/project/note.py +18 -0
  44. atomict/project/project.py +32 -0
  45. atomict/project/tags.py +48 -0
  46. atomict/project/workbench.py +6 -0
  47. atomict/reality/__init__.py +0 -0
  48. atomict/reality/oqmd.py +5 -0
  49. atomict/reality/slabs.py +5 -0
  50. atomict/simulation/__init__.py +0 -0
  51. atomict/simulation/cantera.py +35 -0
  52. atomict/simulation/catalysis.py +20 -0
  53. atomict/simulation/counterfactual.py +28 -0
  54. atomict/simulation/ea.py +64 -0
  55. atomict/simulation/fhi_aims.py +72 -0
  56. atomict/simulation/kpoint.py +74 -0
  57. atomict/simulation/mlrelax.py +83 -0
  58. atomict/simulation/phonon.py +12 -0
  59. atomict/simulation/qe.py +74 -0
  60. atomict/simulation/sqs.py +24 -0
  61. atomict/simulation/utils.py +83 -0
  62. atomict/user/__init__.py +0 -0
  63. atomict/user/files.py +31 -0
  64. atomict/user/workspace.py +112 -0
  65. atomict/utils/fhiaims/__init__.py +0 -0
  66. atomict/utils/fhiaims/geometry.py +65 -0
  67. atomict/utils/tenacity.py +36 -0
  68. {atomict-0.1.2.dist-info → atomict-0.1.4.dist-info}/LICENSE +0 -0
  69. atomict-0.1.4.dist-info/METADATA +105 -0
  70. atomict-0.1.4.dist-info/RECORD +77 -0
  71. {atomict-0.1.2.dist-info → atomict-0.1.4.dist-info}/WHEEL +1 -1
  72. atomict-0.1.4.dist-info/entry_points.txt +2 -0
  73. {atomict-0.1.2.dist-info → atomict-0.1.4.dist-info}/top_level.txt +0 -1
  74. atomict/__main__.py +0 -3
  75. atomict/cli.py +0 -59
  76. atomict/datasets/__init__.py +0 -25
  77. atomict/datasets/io.py +0 -47
  78. atomict/datasets/public.py +0 -32
  79. atomict/utils/requests.py +0 -19
  80. atomict/version.py +0 -2
  81. atomict-0.1.2.dist-info/METADATA +0 -97
  82. atomict-0.1.2.dist-info/RECORD +0 -19
  83. atomict-0.1.2.dist-info/entry_points.txt +0 -2
  84. tests/test_sdk.py +0 -16
  85. /atomict/{auth → cli}/__init__.py +0 -0
  86. /atomict/{utils → infra}/__init__.py +0 -0
  87. {tests → atomict/infra/distwork}/__init__.py +0 -0
  88. /tests/test_cli.py → /atomict/io/__init__.py +0 -0
@@ -0,0 +1,77 @@
1
+ atomict/__init__.py,sha256=nMXg9GFsk8gCcyBnh1MAeUPvo4Zcuv3sdwGHZrxfpPE,36
2
+ atomict/__version__.py,sha256=JMD28FXYHc_TM03visyUSd3UA9FZAaJMRStnfZoq50Y,21
3
+ atomict/api.py,sha256=k_vdCSaMk00Num6bYvPgz2fDC8ChrnT2cgJDftEoe3k,6595
4
+ atomict/auth.py,sha256=yMEaxaSg44tSDxr4x-bjwjjn9zIsqw_bVoKd01Zd9LU,987
5
+ atomict/env.py,sha256=RqK5SUfCDJ6aMGtCPhNmSrwsNZSjlGaDQYYk41oeBDc,2115
6
+ atomict/exceptions.py,sha256=-PT-Bw-2SoPAME0ELXCXRBsU7tBOAbHTscnvnGRto-4,146
7
+ atomict/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ atomict/cli/main.py,sha256=gL90uDCBlTwDm_7JaTofsox4MWk3IuU45xmasdvjuh8,3906
9
+ atomict/cli/commands/adsorbate.py,sha256=f6R0R3fTWloyrnEBqXpnCZ_Axf2gwz9xPFk3K3MBjqA,5798
10
+ atomict/cli/commands/ai_assist.py,sha256=IgZyoeL5mdwkcwxKWD7y0Enjus-wSlrYee-keyacOOY,3449
11
+ atomict/cli/commands/catalysis.py,sha256=raBRBttv3R2ZQvZBnyIlnBXJyZbpISL_5_WWXHg3X_s,5502
12
+ atomict/cli/commands/common.py,sha256=NG8hiLxUGtk-fW5uVs30nKqVciireghoczT7YsGoR1w,1630
13
+ atomict/cli/commands/helpers.py,sha256=VcfJ9g_5CQpVVr-Ptbz4Ah-kq7z5WEJxVCvJkREFjUQ,2039
14
+ atomict/cli/commands/k8s.py,sha256=uXLbcvDtaXx9Y9Iu64hx3AenQXQ8ozROAdV-0RH-JRc,6694
15
+ atomict/cli/commands/login.py,sha256=6BsyRsNLAtr2bMwYr1e5IAKqjuHI6edClCCBdJ_rZF8,1171
16
+ atomict/cli/commands/organization.py,sha256=EIDpiue815jNi4mDyLCbHUGudNlB0RBPwWgrdBt5DCo,2106
17
+ atomict/cli/commands/project.py,sha256=90JL5Q1KI-9kIlrxARMb7K9-S40daGj1jXml_lUokfU,28426
18
+ atomict/cli/commands/simulation.py,sha256=ywh5pIKEC2B60G_gqb9ZcDhyZyKrcXaBxGXWw8TaQ7g,5357
19
+ atomict/cli/commands/task.py,sha256=64SHXX9_qT9nv8_a65RuBTj3JW9v9B4OhtBeYXmTY2g,5423
20
+ atomict/cli/commands/upload.py,sha256=Q6e2Jxj0D8D4oXG1nZnRmx0r6VeRckJ4fCFyDZG32EE,2609
21
+ atomict/cli/commands/user.py,sha256=7jja2At19hrMoTaRx7PrAZRS0C48BJjIN9WEmzN7Xxc,6486
22
+ atomict/cli/commands/exploration/__init__.py,sha256=LTuDJsRPL62w-YYXx-X_GgsuD2Dovj74h-G5tTw5DaE,169
23
+ atomict/cli/commands/exploration/soec.py,sha256=ZkKJKHz97OaswLS0hptyEquQyyATkfb8T6EI3ngkg68,18888
24
+ atomict/cli/commands/exploration/sqs.py,sha256=AVyiU25SvOv1I-lYfCqgnnaEmCiFNDggsP1GLcmliS8,14593
25
+ atomict/cli/commands/simulation/__init__.py,sha256=WN3nfhsjbebyJhG_XcMB6rp2r-vqK5F5k7jxVpYFJCo,518
26
+ atomict/cli/commands/simulation/catalysis.py,sha256=cmQDdy-c6fF7jVjieKSOZOK5Wv9LY62Lf5Ui7f1Dn5w,6995
27
+ atomict/cli/commands/simulation/fhiaims.py,sha256=iUddj5W98gflQOkLo7FD8y7kpdtaLZQFw8LEYVha6f0,9180
28
+ atomict/cli/commands/simulation/kpoint.py,sha256=1M6Pqd27JI_5us8673rpyB_20lsRtDp_9ZY4KpwfYeE,12393
29
+ atomict/cli/commands/simulation/vibes.py,sha256=lfGtKAE6wXhcv3pp6cW76sNHsnoAALVATVMTUX6vZbM,5410
30
+ atomict/cli/core/client.py,sha256=qJdzuWJ-WyLiSpO7hSQ3jqLqrfVdFPv0KyzMgDm-av8,7581
31
+ atomict/cli/core/config.py,sha256=MHQGo59yt3839-r1-3IXqOrN5DNLxMeQ2QBJRSbFONA,1378
32
+ atomict/cli/core/utils.py,sha256=J8hh1F1vKERnj8JpWSmc2-UHiwFSJfCCnCjDL3-xm4E,941
33
+ atomict/infra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
+ atomict/infra/logging.py,sha256=p016nxcZXu5XnOOUAgiQ693XXD9jCxzXJHm8nMrcCEA,644
35
+ atomict/infra/distwork/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
+ atomict/infra/distwork/environment.py,sha256=joydS9wA2pgWafXh_Wqgg95InaxhsusohaeWc9IOgwA,909
37
+ atomict/infra/distwork/task.py,sha256=RsTpIyI43qisD8mwobnDFGq3bUDWMi1WtZzk5cRO40M,1121
38
+ atomict/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
+ atomict/io/cif.py,sha256=SGil4k_6SmNUnu-dKWy9ox0odbXbL-zxvelyBZThmeg,5087
40
+ atomict/io/fhiaims.py,sha256=Zh_HAsv6128acSwzSeTrGN1Ra1I_RvDwJsubRODovaY,958
41
+ atomict/io/json.py,sha256=9IVFA5aHcD61eats5SajiFzvvpsXGgp4eCpnJaHFCoE,501
42
+ atomict/io/utils.py,sha256=ncA8XchNN3lJT8EhJK6tLJE9TvmHmPlxizTnY5ASvEc,272
43
+ atomict/ml/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ atomict/ml/model.py,sha256=Ug6IyRNNQ5_SHnQabFHnCCAGTHa9jxrRAUAkBsdcjgo,279
45
+ atomict/project/__init__.py,sha256=nqVivok-9G0mZr_kOxA-5dsk5p9xPdkUSyNvB-xbveI,23
46
+ atomict/project/link.py,sha256=u2MMgSsKcd2WLaQArbaI2gNoCAPVw5NZrpEAqs5-d4I,640
47
+ atomict/project/note.py,sha256=PEJjvnSrGPL39dwHkifxEwuTeF3WBXPR6pF-qjy5Re0,438
48
+ atomict/project/project.py,sha256=LmtLvvFHO_9kdgsN13i6tsvfRjwRvM6vxhAzLdhaauE,769
49
+ atomict/project/tags.py,sha256=etDU4WR7seVVmFbEJss3xY9hi6jeowb9guEKGb5WAZk,1237
50
+ atomict/project/workbench.py,sha256=vsr1XgrKdIkZGSsR05ueUtepks1APX0JpQI4nVTedTc,163
51
+ atomict/reality/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
+ atomict/reality/oqmd.py,sha256=nmC6VZb6AGqIj_VcVZxs6ndcefQMcT9xlbYoCylJrbs,103
53
+ atomict/reality/slabs.py,sha256=7CbVvrbbhbqojJyaZaczXy7AFqkfGTmSOXIOyqYhGJ0,114
54
+ atomict/simulation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
+ atomict/simulation/cantera.py,sha256=u9TTa_Zm9CPNSln4V06tyJspr3NiCCCZPW6guuOlb5o,858
56
+ atomict/simulation/catalysis.py,sha256=NT7r1qPoYWxVcWQHuAaYWBOprLbZukZLezBHxqIIzRM,565
57
+ atomict/simulation/counterfactual.py,sha256=8-Kf4wGxPvImDr0j2grmBLLwFQ4JpjhBBxIksIwblIQ,708
58
+ atomict/simulation/ea.py,sha256=K1XJxn2DKrju4YjiUffoukjhLh_xbE2E1t3P6AJnzTM,1837
59
+ atomict/simulation/fhi_aims.py,sha256=IMSziMYttJGYKkrtbYOyTFEmxpFiTqpxyOUpm_imMl4,1722
60
+ atomict/simulation/kpoint.py,sha256=8Dc1F9xqubK1HBCQa7GeRtIhs28302sRnuUK0Rns9Q4,1739
61
+ atomict/simulation/mlrelax.py,sha256=fg5Ftx_MafMcc4CoU_nr3jmMqzKB8QhcJTpoEYXpvPQ,2109
62
+ atomict/simulation/phonon.py,sha256=_0lPjYv2nbuL2O7DRzLE9-oPNAemagcoD6R6Tu2W4V4,333
63
+ atomict/simulation/qe.py,sha256=p46YiHj_HIiqxrQGs-SBuGoWk5zUiHahXIRcyjdEq3c,1702
64
+ atomict/simulation/sqs.py,sha256=ZAJhQgA1_xUL05cOAM725kxTFijD4gYXU6QFhBJgNlo,635
65
+ atomict/simulation/utils.py,sha256=O9-FgZ3Qz99ufJ99NaoUZ9cvs9dXZhtELAJF-EMxth0,3000
66
+ atomict/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
+ atomict/user/files.py,sha256=8xGPkISOIiFYsYr26k8OqGE3G7q096zdtV6uy6YTtVU,875
68
+ atomict/user/workspace.py,sha256=TIi1maH2piJRaWfs_Fcx4614Zr9F9okrqZD4PfY01tM,4018
69
+ atomict/utils/tenacity.py,sha256=phc6YPEk7idqiFFeHeK-ngiAaqVOZFYp8S7dX1k-YXc,998
70
+ atomict/utils/fhiaims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
+ atomict/utils/fhiaims/geometry.py,sha256=fIBsR9aqRbmg9U4kQIrSvczjuWYAxDXU3a15BWLAvvo,2021
72
+ atomict-0.1.4.dist-info/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
73
+ atomict-0.1.4.dist-info/METADATA,sha256=q8cYbhIGfRLNLnn_0EjxygZlIoBr49p2XIaGO1nFPFk,2686
74
+ atomict-0.1.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
75
+ atomict-0.1.4.dist-info/entry_points.txt,sha256=1m0DSoQ_LbIneYtzkNO0I40oygfCjNHUmzNQatAJLow,45
76
+ atomict-0.1.4.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
77
+ atomict-0.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ at = atomict.cli.main:main
atomict/__main__.py DELETED
@@ -1,3 +0,0 @@
1
- from .cli import main
2
-
3
- main()
atomict/cli.py DELETED
@@ -1,59 +0,0 @@
1
- from atomict.datasets import download_public_dataset
2
- from atomict.datasets.public import MAPPINGS
3
-
4
-
5
- import fire
6
- import os
7
- from prettytable import PrettyTable
8
- from typing import Optional
9
-
10
-
11
- class AtomicT:
12
- """Atomic Tessellator CLI."""
13
-
14
- def list_datasets(self):
15
- """List all public datasets available for download."""
16
- table = PrettyTable(['Dataset Ident', 'Fetch From'])
17
- table.align = 'l'
18
-
19
- for ident, url in MAPPINGS.items():
20
- table.add_row([ident, url])
21
-
22
- print(table)
23
- print()
24
- print('Use atomict get <dataset_ident> to fetch a dataset.')
25
- print()
26
-
27
- def download_dataset(self, identifier: str, destination: Optional[str] = None):
28
- """Download a public dataset from the atomict-raw-datasets s3 bucket.
29
- Parameters
30
- ----------
31
- stub : str
32
- The name of the dataset to load.
33
- destination : str
34
- The path to save the dataset to.
35
- Returns
36
- -------
37
- None
38
- """
39
-
40
- # If destination is supplied it must be a valid folder path
41
- if destination:
42
- if not os.path.isdir(destination):
43
- raise ValueError(f'Destination: {destination} must be a valid folder')
44
- else:
45
- destination = os.getcwd()
46
-
47
- try:
48
- download_public_dataset(identifier, destination)
49
- except ValueError as e:
50
- return e
51
-
52
-
53
- def main():
54
- fire.Fire(AtomicT, name='atomict')
55
-
56
-
57
- if __name__ == '__main__':
58
- main()
59
-
@@ -1,25 +0,0 @@
1
- from atomict.datasets.io import get_public_dataset, download_public_dataset
2
- from atomict.datasets.public import MAPPINGS
3
-
4
- import pandas as pd
5
- from typing import List
6
-
7
- # Helper function so that the API looks cleaner:
8
- #
9
- # atomict.datasets.get('bace')
10
- #
11
- # instead of:
12
- #
13
- # atomict.datasets.io.get_public_dataset('bace')
14
- def get(slug: str) -> pd.DataFrame:
15
- """Get a public dataset from the atomict-raw-datasets s3 bucket.
16
- Parameters
17
- ----------
18
- slug : str
19
- The name of the dataset to load.
20
- Returns
21
- -------
22
- pd.DataFrame
23
- The dataset.
24
- """
25
- return get_public_dataset(slug)
atomict/datasets/io.py DELETED
@@ -1,47 +0,0 @@
1
- from atomict.datasets.public import MAPPINGS
2
- from atomict.utils.requests import download_large_file
3
-
4
-
5
- import os
6
- import pandas as pd
7
-
8
-
9
- def get_public_dataset(stub: str) -> pd.DataFrame:
10
- """Get a public dataset from the atomict-raw-datasets s3 bucket.
11
- Parameters
12
- ----------
13
- stub : str
14
- The name of the dataset to load.
15
- Returns
16
- -------
17
- pd.DataFrame
18
- The dataset.
19
- """
20
-
21
- if stub not in MAPPINGS.keys():
22
- raise ValueError(f'Unknown dataset {stub}.')
23
-
24
- return pd.read_csv(MAPPINGS[stub])
25
-
26
-
27
- def download_public_dataset(stub: str, destination: str) -> None:
28
- """Download a public dataset from the atomict-raw-datasets s3 bucket.
29
- Parameters
30
- ----------
31
- stub : str
32
- The name of the dataset to load.
33
- destination : str
34
- The path to save the dataset to.
35
- Returns
36
- -------
37
- None
38
- """
39
-
40
- if stub not in MAPPINGS.keys():
41
- raise ValueError(f'Unknown dataset {stub}.')
42
-
43
- url = MAPPINGS[stub]
44
- full_path = os.path.join(destination, url.split('/')[-1])
45
-
46
- print(f'Downloading {url} to {destination}...')
47
- download_large_file(url, full_path)
@@ -1,32 +0,0 @@
1
- # This is a public s3 bucket
2
-
3
- ROOT_URL = 'https://atomict-raw-datasets.s3.us-west-2.amazonaws.com/'
4
-
5
- MAPPINGS = {
6
- 'bace': f'{ROOT_URL}bace.csv.gz',
7
- 'BBBP': f'{ROOT_URL}BBBP.csv.gz',
8
- 'clintox': f'{ROOT_URL}clintox.csv.gz',
9
- 'delaney': f'{ROOT_URL}delaney-processed.csv.gz',
10
- 'freesolv': f'{ROOT_URL}freesolv.csv.gz',
11
- 'gdb7': f'{ROOT_URL}gdb7.tar.gz',
12
- 'gdb8': f'{ROOT_URL}gdb8.tar.gz',
13
- 'gdb9': f'{ROOT_URL}gdb9.tar.gz',
14
- 'hiv': f'{ROOT_URL}HIV.csv.gz',
15
- 'hopv': f'{ROOT_URL}hopv.csv.gz',
16
- 'hppb': f'{ROOT_URL}hppb.csv.gz',
17
- 'lipophilicity': f'{ROOT_URL}lipophilicity.csv.gz',
18
- 'muv': f'{ROOT_URL}muv.csv.gz',
19
- 'nci': f'{ROOT_URL}nci_unique.csv.gz',
20
- 'pcba': f'{ROOT_URL}pcba.csv.gz',
21
- 'pdbbind_refined': f'{ROOT_URL}pdbbind_v2019_refined.tar.gz',
22
- 'pdbbind': f'{ROOT_URL}PDBBind.zip',
23
- 'pfas_4k': f'{ROOT_URL}pfas_4k.csv.gz',
24
- 'pfas_priority': f'{ROOT_URL}pfas_priority.csv.gz',
25
- 'RGD1': f'{ROOT_URL}RGD1_CHNO.h5.gz',
26
- 'sider': f'{ROOT_URL}sider.csv.gz',
27
- 'thermosol': f'{ROOT_URL}thermosol.csv.gz',
28
- 'tox21': f'{ROOT_URL}tox21.csv.gz',
29
- 'toxcast': f'{ROOT_URL}toxcast_data.csv.gz',
30
- 'USPTO': f'{ROOT_URL}USPTO-FULL.csv.gz',
31
- 'zinc15': f'{ROOT_URL}zinc15_270M_2D.csv.gz',
32
- }
atomict/utils/requests.py DELETED
@@ -1,19 +0,0 @@
1
- import requests
2
- from tqdm import tqdm
3
-
4
-
5
- def download_large_file(url, destination_file):
6
- # Send an HTTP request to get the file size
7
- response = requests.get(url, stream=True)
8
- total_size = int(response.headers.get('content-length', 0))
9
-
10
- # Initialize tqdm progress bar with the total file size
11
- progress_bar = tqdm(total=total_size, unit='iB', unit_scale=True)
12
-
13
- with open(destination_file, 'wb') as file:
14
- for chunk in response.iter_content(chunk_size=8192):
15
- # Write the chunk to the file and update the progress bar
16
- file.write(chunk)
17
- progress_bar.update(len(chunk))
18
-
19
- progress_bar.close()
atomict/version.py DELETED
@@ -1,2 +0,0 @@
1
- __version_info__ = ('0', '1', '2')
2
- __version__ = '.'.join(__version_info__)
@@ -1,97 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: atomict
3
- Version: 0.1.2
4
- Summary: The client application for the https://atomictessellator.com/
5
- Home-page: https://github.com/AtomicTessellator/atomic_cli
6
- Author: Alain Richardt
7
- Author-email: alain@atomictessellator.com
8
- Classifier: Development Status :: 3 - Alpha
9
- Classifier: Intended Audience :: Developers
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Operating System :: OS Independent
12
- Classifier: Programming Language :: Python :: 3
13
- Classifier: Programming Language :: Python :: 3.6
14
- Classifier: Programming Language :: Python :: 3.7
15
- Classifier: Programming Language :: Python :: 3.8
16
- Classifier: Programming Language :: Python :: 3.9
17
- Classifier: Programming Language :: Python :: 3.10
18
- Classifier: Programming Language :: Python :: 3.11
19
- Requires-Python: >=3.6
20
- Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
- Requires-Dist: bleach (==6.0.0)
23
- Requires-Dist: build (==0.10.0)
24
- Requires-Dist: certifi (==2022.12.7)
25
- Requires-Dist: cffi (==1.15.1)
26
- Requires-Dist: charset-normalizer (==3.1.0)
27
- Requires-Dist: cryptography (==40.0.2)
28
- Requires-Dist: docutils (==0.19)
29
- Requires-Dist: fire (==0.5.0)
30
- Requires-Dist: idna (==3.4)
31
- Requires-Dist: importlib-metadata (==6.6.0)
32
- Requires-Dist: jaraco.classes (==3.2.3)
33
- Requires-Dist: jeepney (==0.8.0)
34
- Requires-Dist: keyring (==23.13.1)
35
- Requires-Dist: markdown-it-py (==2.2.0)
36
- Requires-Dist: mdurl (==0.1.2)
37
- Requires-Dist: more-itertools (==9.1.0)
38
- Requires-Dist: numpy (==1.24.3)
39
- Requires-Dist: packaging (==23.1)
40
- Requires-Dist: pandas (==2.0.0)
41
- Requires-Dist: pkginfo (==1.9.6)
42
- Requires-Dist: prettytable (==3.7.0)
43
- Requires-Dist: pycparser (==2.21)
44
- Requires-Dist: Pygments (==2.15.1)
45
- Requires-Dist: pyproject-hooks (==1.0.0)
46
- Requires-Dist: python-dateutil (==2.8.2)
47
- Requires-Dist: pytz (==2023.3)
48
- Requires-Dist: readme-renderer (==37.3)
49
- Requires-Dist: requests (==2.29.0)
50
- Requires-Dist: requests-toolbelt (==1.0.0)
51
- Requires-Dist: rfc3986 (==2.0.0)
52
- Requires-Dist: rich (==13.3.5)
53
- Requires-Dist: SecretStorage (==3.3.3)
54
- Requires-Dist: six (==1.16.0)
55
- Requires-Dist: termcolor (==2.2.0)
56
- Requires-Dist: tomli (==2.0.1)
57
- Requires-Dist: tqdm (==4.65.0)
58
- Requires-Dist: twine (==4.0.2)
59
- Requires-Dist: tzdata (==2023.3)
60
- Requires-Dist: urllib3 (==1.26.15)
61
- Requires-Dist: wcwidth (==0.2.6)
62
- Requires-Dist: webencodings (==0.5.1)
63
- Requires-Dist: zipp (==3.15.0)
64
-
65
- # Atomic Tessellator - CLI package
66
-
67
- ## Installation
68
- ```
69
- pip install atomict
70
- ```
71
-
72
-
73
- ## CLI Usage
74
- ```
75
- # Show available public datasets
76
-
77
- > at list_datasets
78
-
79
- # Download a dataset
80
-
81
- > at download_dataset tox21
82
- ```
83
-
84
- ## SDK Usage
85
- ```
86
- from atomict.datasets import get
87
-
88
- df = get('tox21')
89
- ```
90
-
91
- ## Roadmap
92
- - [x] CLI
93
- - [x] Download Public Datasets
94
- - [ ] Local dataset caching
95
- - [ ] Authentication
96
- - [ ] Reality Server API endpoints - Simulations
97
-
@@ -1,19 +0,0 @@
1
- atomict/__init__.py,sha256=Jzb_RfgvXCrm_SQ4AfeGVi1N36YybxnM5mpyxrnihgI,33
2
- atomict/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
3
- atomict/cli.py,sha256=fsZhvqs3jdLo4I9nhnQPiSVOGdXbM_qY9Pg5Kpy1y0A,1379
4
- atomict/version.py,sha256=QdFDkD9bncGUXKwCJl8Se_ywEAxjO1JGJVuPKSWAKvA,75
5
- atomict/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- atomict/datasets/__init__.py,sha256=lRyf8CGAuHGlYYnHh8O3Ivja3Qhzlg_1hkBw6itN0G4,614
7
- atomict/datasets/io.py,sha256=vEjRHxiZOQjmiXm7Sw7hEq83PFq4lEM_zacyL7EspZU,1143
8
- atomict/datasets/public.py,sha256=xzOwRll3XURFhSo9H7RVieHkwuvzVzaRIGfRd8Zm-Gs,1255
9
- atomict/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- atomict/utils/requests.py,sha256=q8eJbRI4UIXNi-fQz5IPXFeWHTYHs4hfHd8DRXLmcnE,656
11
- tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- tests/test_cli.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- tests/test_sdk.py,sha256=qk9dxms4I4FTvQ1N3IRywcIw6rVi7U9bt4C_38jnTnI,215
14
- atomict-0.1.2.dist-info/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
15
- atomict-0.1.2.dist-info/METADATA,sha256=0oQRSlIqOikesr4jc_eK2V4jS94c0t40G8nvk6hfutw,2777
16
- atomict-0.1.2.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
17
- atomict-0.1.2.dist-info/entry_points.txt,sha256=DVvxpktCf3WZ09EFvvc94zCWSdDBPC16x9Agkcqtsqw,40
18
- atomict-0.1.2.dist-info/top_level.txt,sha256=-m7cxfvaTIEZcq56bXZ-0_QO3f4PFRD-VLCvGcdfO5o,14
19
- atomict-0.1.2.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- at = atomict.cli:main
tests/test_sdk.py DELETED
@@ -1,16 +0,0 @@
1
- from atomict.datasets import get
2
-
3
-
4
- import pytest
5
-
6
-
7
- def test_get_success():
8
-
9
- df = get('clintox')
10
- assert df.shape == (1484, 3)
11
-
12
-
13
- def test_get_failure():
14
-
15
- with pytest.raises(ValueError):
16
- get('xxx')
File without changes
File without changes
File without changes
File without changes