atomict 1.2.14__py3-none-any.whl → 1.2.16__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.
- atomict/__version__.py +1 -1
- atomict/cli/commands/token.py +18 -0
- atomict/cli/commands/traj.py +7 -8
- atomict/cli/core/client.py +3 -0
- atomict/cli/ext/custom_classes.py +12 -0
- atomict/cli/main.py +2 -1
- atomict/simulation/sh.py +28 -0
- {atomict-1.2.14.dist-info → atomict-1.2.16.dist-info}/METADATA +6 -2
- {atomict-1.2.14.dist-info → atomict-1.2.16.dist-info}/RECORD +13 -11
- {atomict-1.2.14.dist-info → atomict-1.2.16.dist-info}/WHEEL +0 -0
- {atomict-1.2.14.dist-info → atomict-1.2.16.dist-info}/entry_points.txt +0 -0
- {atomict-1.2.14.dist-info → atomict-1.2.16.dist-info}/licenses/LICENSE +0 -0
- {atomict-1.2.14.dist-info → atomict-1.2.16.dist-info}/top_level.txt +0 -0
atomict/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.16"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import click
|
|
2
|
+
from rich.console import Console
|
|
3
|
+
|
|
4
|
+
from ..core.config import Config, CONFIG_FILE
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@click.command(name="token",
|
|
8
|
+
help="Display the current authentication token if it exists.")
|
|
9
|
+
def _token():
|
|
10
|
+
config = Config()
|
|
11
|
+
console = Console()
|
|
12
|
+
|
|
13
|
+
if config.token:
|
|
14
|
+
console.print(f"[green]Current token:[/green] {config.token}")
|
|
15
|
+
else:
|
|
16
|
+
console.print("[yellow]No authentication token found.[/yellow]")
|
|
17
|
+
console.print(f"[yellow]Please run 'tess login' to authenticate and save a token to {CONFIG_FILE}[/yellow]")
|
|
18
|
+
|
atomict/cli/commands/traj.py
CHANGED
|
@@ -2,14 +2,6 @@ import click
|
|
|
2
2
|
from pathlib import Path
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
try:
|
|
6
|
-
from ase.io import read, write
|
|
7
|
-
from ase.io.trajectory import TrajectoryWriter
|
|
8
|
-
except ImportError:
|
|
9
|
-
click.echo("Error: ASE modules not found. Please install with 'pip install atomict[utils]'")
|
|
10
|
-
raise
|
|
11
|
-
|
|
12
|
-
|
|
13
5
|
@click.group()
|
|
14
6
|
def traj():
|
|
15
7
|
"""Operations on trajectory files."""
|
|
@@ -24,6 +16,13 @@ def subsample(file_path, step):
|
|
|
24
16
|
|
|
25
17
|
The output will be saved as {original_filename}_subsampled_{step}.traj
|
|
26
18
|
"""
|
|
19
|
+
try:
|
|
20
|
+
from ase.io import read, write
|
|
21
|
+
from ase.io.trajectory import TrajectoryWriter
|
|
22
|
+
except ImportError:
|
|
23
|
+
click.echo("Error: ASE modules not found. Please install with 'pip install atomict[utils]'")
|
|
24
|
+
raise
|
|
25
|
+
|
|
27
26
|
if step <= 0:
|
|
28
27
|
click.echo("Error: Step must be a positive integer")
|
|
29
28
|
return
|
atomict/cli/core/client.py
CHANGED
|
@@ -127,6 +127,9 @@ class APIClient:
|
|
|
127
127
|
"[red]Server error. Please try again later or contact support.[/red]"
|
|
128
128
|
)
|
|
129
129
|
|
|
130
|
+
console.print(
|
|
131
|
+
"[yellow]For help, join the Atomic Tessellator discord community: https://discord.com/invite/cpa7aZX97Y[/yellow]"
|
|
132
|
+
)
|
|
130
133
|
logger.debug(f"Server error response: {error_data}")
|
|
131
134
|
sys.exit(1)
|
|
132
135
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import click
|
|
2
|
+
from rich.console import Console
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
class DefaultCommandGroup(click.Group):
|
|
@@ -32,3 +33,14 @@ class DefaultCommandGroup(click.Group):
|
|
|
32
33
|
# command did not parse, assume it is the default command
|
|
33
34
|
args.insert(0, self.default_command)
|
|
34
35
|
return super(DefaultCommandGroup, self).resolve_command(ctx, args)
|
|
36
|
+
|
|
37
|
+
def get_help(self, ctx):
|
|
38
|
+
"""Override help formatting to add additional resources section."""
|
|
39
|
+
help_text = super().get_help(ctx)
|
|
40
|
+
|
|
41
|
+
# Add additional resources section with extra spacing
|
|
42
|
+
additional_resources = "\n\nAdditional Resources:\n"
|
|
43
|
+
additional_resources += " To get help join the Atomic Tessellator discord community at this link:\n"
|
|
44
|
+
additional_resources += " https://discord.com/invite/cpa7aZX97Y\n"
|
|
45
|
+
|
|
46
|
+
return help_text + additional_resources
|
atomict/cli/main.py
CHANGED
|
@@ -7,7 +7,7 @@ import click
|
|
|
7
7
|
from rich.console import Console
|
|
8
8
|
|
|
9
9
|
from atomict.__version__ import __version__
|
|
10
|
-
from atomict.cli.commands import login, user
|
|
10
|
+
from atomict.cli.commands import login, token, user
|
|
11
11
|
from atomict.cli.ext.custom_classes import DefaultCommandGroup
|
|
12
12
|
|
|
13
13
|
try:
|
|
@@ -219,6 +219,7 @@ cli.add_command(soec.soecexploration_group)
|
|
|
219
219
|
cli.add_command(traj.traj)
|
|
220
220
|
cli.add_command(user.user_group)
|
|
221
221
|
cli.add_command(login._login)
|
|
222
|
+
cli.add_command(token._token)
|
|
222
223
|
cli.add_command(vibes.vibes_group)
|
|
223
224
|
|
|
224
225
|
|
atomict/simulation/sh.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from atomict.api import get, post
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def get_sh(id: str, **params):
|
|
5
|
+
"""
|
|
6
|
+
Get SH
|
|
7
|
+
"""
|
|
8
|
+
result = get(f"api/encoding-task/{id}/", params=params)
|
|
9
|
+
return result
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def associate_user_upload_with_sh(user_upload_id: str, sh_id: str):
|
|
13
|
+
"""
|
|
14
|
+
Associate a user upload with a SH
|
|
15
|
+
"""
|
|
16
|
+
result = post(
|
|
17
|
+
"api/encoding-file/",
|
|
18
|
+
payload={"user_upload_id": user_upload_id, "encoding_id": sh_id},
|
|
19
|
+
)
|
|
20
|
+
return result
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def get_sh_files(sh_id: str):
|
|
24
|
+
"""
|
|
25
|
+
Get the files associated with a SH
|
|
26
|
+
"""
|
|
27
|
+
result = get(f"api/encoding-file/?encoding__id={sh_id}")
|
|
28
|
+
return result
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atomict
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.16
|
|
4
4
|
Summary: The client application for the https://atomictessellator.com/
|
|
5
5
|
Author-email: Steven Anderson <steven@atomictessellator.com>, Alain Richardt <alain@atomictessellator.com>
|
|
6
6
|
License: MIT
|
|
@@ -71,7 +71,7 @@ export AT_DEBUG=enabled
|
|
|
71
71
|
|
|
72
72
|
```$ tess```
|
|
73
73
|
|
|
74
|
-

|
|
75
75
|
|
|
76
76
|
You can get help for each command with `tess <command> --help`. This will print the command-specific help and options.
|
|
77
77
|
## Log in and store authentication token
|
|
@@ -80,6 +80,10 @@ You can get help for each command with `tess <command> --help`. This will print
|
|
|
80
80
|
|
|
81
81
|
This will prompt you for your username and password.
|
|
82
82
|
|
|
83
|
+
```$ tess token```
|
|
84
|
+
|
|
85
|
+
This command prints out your current token.
|
|
86
|
+
|
|
83
87
|
|
|
84
88
|
## Get a list of available projects
|
|
85
89
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
atomict/__init__.py,sha256=nMXg9GFsk8gCcyBnh1MAeUPvo4Zcuv3sdwGHZrxfpPE,36
|
|
2
|
-
atomict/__version__.py,sha256=
|
|
2
|
+
atomict/__version__.py,sha256=7RIJ-Nh9kHJf5O5NvahUeP8DNXq6oIzbYcIt_yKv0lQ,23
|
|
3
3
|
atomict/api.py,sha256=1aI2qPMm6V9VY4PLR8LBMm2WwVCBB9pAL7sEowvjhtc,6706
|
|
4
4
|
atomict/auth.py,sha256=yMEaxaSg44tSDxr4x-bjwjjn9zIsqw_bVoKd01Zd9LU,987
|
|
5
5
|
atomict/env.py,sha256=RqK5SUfCDJ6aMGtCPhNmSrwsNZSjlGaDQYYk41oeBDc,2115
|
|
6
6
|
atomict/exceptions.py,sha256=-PT-Bw-2SoPAME0ELXCXRBsU7tBOAbHTscnvnGRto-4,146
|
|
7
7
|
atomict/ase/atatoms.py,sha256=jNgAb0UfAZu4AJFbGgpOfDTg2u1vDolmSBZJK0BhwRE,27736
|
|
8
8
|
atomict/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
atomict/cli/main.py,sha256=
|
|
9
|
+
atomict/cli/main.py,sha256=wMTzGcLUEM3657tiAQK9JDovy22rtpR4LUSmWfpC6n4,9751
|
|
10
10
|
atomict/cli/commands/adsorbate.py,sha256=fdu6m5Kx2fkQXA--BsvU5QWcq0-PKFi7bGaLJZnnqag,5836
|
|
11
11
|
atomict/cli/commands/ai_assist.py,sha256=IgZyoeL5mdwkcwxKWD7y0Enjus-wSlrYee-keyacOOY,3449
|
|
12
12
|
atomict/cli/commands/catalysis.py,sha256=raBRBttv3R2ZQvZBnyIlnBXJyZbpISL_5_WWXHg3X_s,5502
|
|
@@ -18,7 +18,8 @@ atomict/cli/commands/organization.py,sha256=EIDpiue815jNi4mDyLCbHUGudNlB0RBPwWgr
|
|
|
18
18
|
atomict/cli/commands/project.py,sha256=kbqTE7tUEkjE3Hm64WrHDw_sqd1jMnGOH4PIQPJfmEM,28540
|
|
19
19
|
atomict/cli/commands/simulation.py,sha256=ywh5pIKEC2B60G_gqb9ZcDhyZyKrcXaBxGXWw8TaQ7g,5357
|
|
20
20
|
atomict/cli/commands/task.py,sha256=eRZlClY4W57gKz6WiYKf9M1ZdLag37o3YxUrgOCCfsA,5453
|
|
21
|
-
atomict/cli/commands/
|
|
21
|
+
atomict/cli/commands/token.py,sha256=yTyH0J2xStO2cly9iifMHd8QTvHVPHL0owe4r6XUJ5s,560
|
|
22
|
+
atomict/cli/commands/traj.py,sha256=uMOjc_gZy0MlKAbEDPDxCjLB3s2aCV_ZZ3A0mbnkBTA,1831
|
|
22
23
|
atomict/cli/commands/upload.py,sha256=U7OW4mrYeqfoMHXPIBNTHDTOvx_-rGiY82Sj72y8N-Q,2823
|
|
23
24
|
atomict/cli/commands/user.py,sha256=7jja2At19hrMoTaRx7PrAZRS0C48BJjIN9WEmzN7Xxc,6486
|
|
24
25
|
atomict/cli/commands/exploration/__init__.py,sha256=LTuDJsRPL62w-YYXx-X_GgsuD2Dovj74h-G5tTw5DaE,169
|
|
@@ -29,10 +30,10 @@ atomict/cli/commands/simulation/catalysis.py,sha256=cmQDdy-c6fF7jVjieKSOZOK5Wv9L
|
|
|
29
30
|
atomict/cli/commands/simulation/fhiaims.py,sha256=iUddj5W98gflQOkLo7FD8y7kpdtaLZQFw8LEYVha6f0,9180
|
|
30
31
|
atomict/cli/commands/simulation/kpoint.py,sha256=1M6Pqd27JI_5us8673rpyB_20lsRtDp_9ZY4KpwfYeE,12393
|
|
31
32
|
atomict/cli/commands/simulation/vibes.py,sha256=lfGtKAE6wXhcv3pp6cW76sNHsnoAALVATVMTUX6vZbM,5410
|
|
32
|
-
atomict/cli/core/client.py,sha256=
|
|
33
|
+
atomict/cli/core/client.py,sha256=LUghyCRi_hXOL4eonEqakRbcVS9lLYIv65QWAXiyXR8,8395
|
|
33
34
|
atomict/cli/core/config.py,sha256=MHQGo59yt3839-r1-3IXqOrN5DNLxMeQ2QBJRSbFONA,1378
|
|
34
35
|
atomict/cli/core/utils.py,sha256=J8hh1F1vKERnj8JpWSmc2-UHiwFSJfCCnCjDL3-xm4E,941
|
|
35
|
-
atomict/cli/ext/custom_classes.py,sha256=
|
|
36
|
+
atomict/cli/ext/custom_classes.py,sha256=q6h07opKDI7a24GRq2naIY0TUlIvISBeW6p8kGuq9ao,1754
|
|
36
37
|
atomict/infra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
38
|
atomict/infra/logging.py,sha256=QC1FTCyth-Qg4rn5h3yzqqKKWYoXMn_4n9AK99rcpOE,7690
|
|
38
39
|
atomict/infra/distwork/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -70,6 +71,7 @@ atomict/simulation/mlrelax.py,sha256=7Y2Q9WPFUFvD-IJYe71Px5tJ4lvI3makR6KghKtlFGY
|
|
|
70
71
|
atomict/simulation/models.py,sha256=2gBPyRo5I6TJetc8iqu7W6gF3eJr9D-zqffonooaJxs,101
|
|
71
72
|
atomict/simulation/phonon.py,sha256=_roteuXyV8KmlwGW1jnidSY6xu_3ReNhLtYGL0OdS8Q,2950
|
|
72
73
|
atomict/simulation/qe.py,sha256=p46YiHj_HIiqxrQGs-SBuGoWk5zUiHahXIRcyjdEq3c,1702
|
|
74
|
+
atomict/simulation/sh.py,sha256=YymnH9q8aD_THiielicTKgPGcRunsAcoV5bZKu__L0w,609
|
|
73
75
|
atomict/simulation/sqs.py,sha256=1neQRVUy21R_UVusML6ocz6RVwxGUVh81CMr2TljGbw,1132
|
|
74
76
|
atomict/simulation/utils.py,sha256=iYp3uVirfbLYjVmb6SqXMPe_HIJdcJKHhKORBIAcG8s,4428
|
|
75
77
|
atomict/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -79,9 +81,9 @@ atomict/utils/tenacity.py,sha256=phc6YPEk7idqiFFeHeK-ngiAaqVOZFYp8S7dX1k-YXc,998
|
|
|
79
81
|
atomict/utils/traj.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
82
|
atomict/utils/fhiaims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
81
83
|
atomict/utils/fhiaims/geometry.py,sha256=3Ap6gO7UsLFXBl9Ohv8Vmfpvwu0fohpzgdxOFGg6Tmc,2281
|
|
82
|
-
atomict-1.2.
|
|
83
|
-
atomict-1.2.
|
|
84
|
-
atomict-1.2.
|
|
85
|
-
atomict-1.2.
|
|
86
|
-
atomict-1.2.
|
|
87
|
-
atomict-1.2.
|
|
84
|
+
atomict-1.2.16.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
|
|
85
|
+
atomict-1.2.16.dist-info/METADATA,sha256=MkdegH0hvdA26M3bbtmwXV0fl2-dflOyEYlWHzCTdi4,3339
|
|
86
|
+
atomict-1.2.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
87
|
+
atomict-1.2.16.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
|
|
88
|
+
atomict-1.2.16.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
|
|
89
|
+
atomict-1.2.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|