atomict 1.2.14__tar.gz → 1.2.16__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.
Files changed (96) hide show
  1. {atomict-1.2.14 → atomict-1.2.16}/PKG-INFO +6 -2
  2. {atomict-1.2.14 → atomict-1.2.16}/README.md +5 -1
  3. atomict-1.2.16/atomict/__version__.py +1 -0
  4. atomict-1.2.16/atomict/cli/commands/token.py +18 -0
  5. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/traj.py +7 -8
  6. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/core/client.py +3 -0
  7. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/ext/custom_classes.py +12 -0
  8. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/main.py +2 -1
  9. atomict-1.2.16/atomict/simulation/sh.py +28 -0
  10. {atomict-1.2.14 → atomict-1.2.16}/atomict.egg-info/PKG-INFO +6 -2
  11. {atomict-1.2.14 → atomict-1.2.16}/atomict.egg-info/SOURCES.txt +2 -0
  12. atomict-1.2.14/atomict/__version__.py +0 -1
  13. {atomict-1.2.14 → atomict-1.2.16}/LICENSE +0 -0
  14. {atomict-1.2.14 → atomict-1.2.16}/atomict/__init__.py +0 -0
  15. {atomict-1.2.14 → atomict-1.2.16}/atomict/api.py +0 -0
  16. {atomict-1.2.14 → atomict-1.2.16}/atomict/ase/atatoms.py +0 -0
  17. {atomict-1.2.14 → atomict-1.2.16}/atomict/auth.py +0 -0
  18. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/__init__.py +0 -0
  19. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/adsorbate.py +0 -0
  20. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/ai_assist.py +0 -0
  21. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/catalysis.py +0 -0
  22. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/common.py +0 -0
  23. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/exploration/__init__.py +0 -0
  24. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/exploration/soec.py +0 -0
  25. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/exploration/sqs.py +0 -0
  26. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/helpers.py +0 -0
  27. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/k8s.py +0 -0
  28. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/login.py +0 -0
  29. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/organization.py +0 -0
  30. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/project.py +0 -0
  31. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/simulation/__init__.py +0 -0
  32. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/simulation/catalysis.py +0 -0
  33. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/simulation/fhiaims.py +0 -0
  34. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/simulation/kpoint.py +0 -0
  35. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/simulation/vibes.py +0 -0
  36. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/simulation.py +0 -0
  37. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/task.py +0 -0
  38. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/upload.py +0 -0
  39. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/commands/user.py +0 -0
  40. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/core/config.py +0 -0
  41. {atomict-1.2.14 → atomict-1.2.16}/atomict/cli/core/utils.py +0 -0
  42. {atomict-1.2.14 → atomict-1.2.16}/atomict/env.py +0 -0
  43. {atomict-1.2.14 → atomict-1.2.16}/atomict/exceptions.py +0 -0
  44. {atomict-1.2.14 → atomict-1.2.16}/atomict/infra/__init__.py +0 -0
  45. {atomict-1.2.14 → atomict-1.2.16}/atomict/infra/distwork/__init__.py +0 -0
  46. {atomict-1.2.14 → atomict-1.2.16}/atomict/infra/distwork/environment.py +0 -0
  47. {atomict-1.2.14 → atomict-1.2.16}/atomict/infra/distwork/task.py +0 -0
  48. {atomict-1.2.14 → atomict-1.2.16}/atomict/infra/logging.py +0 -0
  49. {atomict-1.2.14 → atomict-1.2.16}/atomict/io/__init__.py +0 -0
  50. {atomict-1.2.14 → atomict-1.2.16}/atomict/io/cif.py +0 -0
  51. {atomict-1.2.14 → atomict-1.2.16}/atomict/io/fhiaims.py +0 -0
  52. {atomict-1.2.14 → atomict-1.2.16}/atomict/io/msgpack.py +0 -0
  53. {atomict-1.2.14 → atomict-1.2.16}/atomict/io/trajectory.py +0 -0
  54. {atomict-1.2.14 → atomict-1.2.16}/atomict/io/utils.py +0 -0
  55. {atomict-1.2.14 → atomict-1.2.16}/atomict/ml/__init__.py +0 -0
  56. {atomict-1.2.14 → atomict-1.2.16}/atomict/ml/model.py +0 -0
  57. {atomict-1.2.14 → atomict-1.2.16}/atomict/project/__init__.py +0 -0
  58. {atomict-1.2.14 → atomict-1.2.16}/atomict/project/link.py +0 -0
  59. {atomict-1.2.14 → atomict-1.2.16}/atomict/project/note.py +0 -0
  60. {atomict-1.2.14 → atomict-1.2.16}/atomict/project/project.py +0 -0
  61. {atomict-1.2.14 → atomict-1.2.16}/atomict/project/tags.py +0 -0
  62. {atomict-1.2.14 → atomict-1.2.16}/atomict/project/workbench.py +0 -0
  63. {atomict-1.2.14 → atomict-1.2.16}/atomict/reality/__init__.py +0 -0
  64. {atomict-1.2.14 → atomict-1.2.16}/atomict/reality/oqmd.py +0 -0
  65. {atomict-1.2.14 → atomict-1.2.16}/atomict/reality/slabs.py +0 -0
  66. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/__init__.py +0 -0
  67. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/cantera.py +0 -0
  68. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/catalysis.py +0 -0
  69. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/counterfactual.py +0 -0
  70. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/defect.py +0 -0
  71. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/ea.py +0 -0
  72. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/fhi_aims.py +0 -0
  73. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/impact.py +0 -0
  74. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/kpoint.py +0 -0
  75. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/mattergen.py +0 -0
  76. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/md.py +0 -0
  77. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/mlrelax.py +0 -0
  78. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/models.py +0 -0
  79. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/phonon.py +0 -0
  80. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/qe.py +0 -0
  81. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/sqs.py +0 -0
  82. {atomict-1.2.14 → atomict-1.2.16}/atomict/simulation/utils.py +0 -0
  83. {atomict-1.2.14 → atomict-1.2.16}/atomict/user/__init__.py +0 -0
  84. {atomict-1.2.14 → atomict-1.2.16}/atomict/user/files.py +0 -0
  85. {atomict-1.2.14 → atomict-1.2.16}/atomict/user/workspace.py +0 -0
  86. {atomict-1.2.14 → atomict-1.2.16}/atomict/utils/fhiaims/__init__.py +0 -0
  87. {atomict-1.2.14 → atomict-1.2.16}/atomict/utils/fhiaims/geometry.py +0 -0
  88. {atomict-1.2.14 → atomict-1.2.16}/atomict/utils/tenacity.py +0 -0
  89. {atomict-1.2.14 → atomict-1.2.16}/atomict/utils/traj.py +0 -0
  90. {atomict-1.2.14 → atomict-1.2.16}/atomict.egg-info/dependency_links.txt +0 -0
  91. {atomict-1.2.14 → atomict-1.2.16}/atomict.egg-info/entry_points.txt +0 -0
  92. {atomict-1.2.14 → atomict-1.2.16}/atomict.egg-info/requires.txt +0 -0
  93. {atomict-1.2.14 → atomict-1.2.16}/atomict.egg-info/top_level.txt +0 -0
  94. {atomict-1.2.14 → atomict-1.2.16}/pyproject.toml +0 -0
  95. {atomict-1.2.14 → atomict-1.2.16}/requirements.txt +0 -0
  96. {atomict-1.2.14 → atomict-1.2.16}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomict
3
- Version: 1.2.14
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
- ![Alt text](img/at.png?raw=true "at")
74
+ ![Alt text](img/tess.png?raw=true "tess")
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
 
@@ -32,7 +32,7 @@ export AT_DEBUG=enabled
32
32
 
33
33
  ```$ tess```
34
34
 
35
- ![Alt text](img/at.png?raw=true "at")
35
+ ![Alt text](img/tess.png?raw=true "tess")
36
36
 
37
37
  You can get help for each command with `tess <command> --help`. This will print the command-specific help and options.
38
38
  ## Log in and store authentication token
@@ -41,6 +41,10 @@ You can get help for each command with `tess <command> --help`. This will print
41
41
 
42
42
  This will prompt you for your username and password.
43
43
 
44
+ ```$ tess token```
45
+
46
+ This command prints out your current token.
47
+
44
48
 
45
49
  ## Get a list of available projects
46
50
 
@@ -0,0 +1 @@
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
+
@@ -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
@@ -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
@@ -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
 
@@ -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.14
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
- ![Alt text](img/at.png?raw=true "at")
74
+ ![Alt text](img/tess.png?raw=true "tess")
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
 
@@ -28,6 +28,7 @@ atomict/cli/commands/organization.py
28
28
  atomict/cli/commands/project.py
29
29
  atomict/cli/commands/simulation.py
30
30
  atomict/cli/commands/task.py
31
+ atomict/cli/commands/token.py
31
32
  atomict/cli/commands/traj.py
32
33
  atomict/cli/commands/upload.py
33
34
  atomict/cli/commands/user.py
@@ -80,6 +81,7 @@ atomict/simulation/mlrelax.py
80
81
  atomict/simulation/models.py
81
82
  atomict/simulation/phonon.py
82
83
  atomict/simulation/qe.py
84
+ atomict/simulation/sh.py
83
85
  atomict/simulation/sqs.py
84
86
  atomict/simulation/utils.py
85
87
  atomict/user/__init__.py
@@ -1 +0,0 @@
1
- __version__ = "1.2.14"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes