rowan-python 0.0.5__tar.gz → 1.1.0__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,39 @@
1
+ # This workflow will upload a Python Package using Twine when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ deploy:
20
+
21
+ runs-on: ubuntu-latest
22
+
23
+ steps:
24
+ - uses: actions/checkout@v3
25
+ - name: Set up Python
26
+ uses: actions/setup-python@v3
27
+ with:
28
+ python-version: '3.x'
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install build
33
+ - name: Build package
34
+ run: python -m build
35
+ - name: Publish package
36
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
37
+ with:
38
+ user: __token__
39
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,17 @@
1
+ .DS_Store
2
+ *.pyc
3
+ #pyproject.toml
4
+ *.swp
5
+ dist/*
6
+ MANIFEST
7
+ __pycache__/
8
+ *.py[cod]
9
+ build/*
10
+ *.egg-info
11
+
12
+ *.lprof
13
+
14
+ .ipynb_checkpoints/*
15
+ .ipynb_checkpoints
16
+
17
+ test*
@@ -1,22 +1,19 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: rowan-python
3
- Version: 0.0.5
3
+ Version: 1.1.0
4
4
  Summary: Rowan Python Library
5
- Author-email: Corin Wagen <corin@rowansci.com>
6
5
  Project-URL: Homepage, https://github.com/rowansci/rowan-client
7
6
  Project-URL: Bug Tracker, https://github.com/rowansci/rowan-client/issues
7
+ Author-email: Corin Wagen <corin@rowansci.com>
8
+ License-File: LICENSE
8
9
  Requires-Python: >=3.8
9
10
  Description-Content-Type: text/markdown
10
- License-File: LICENSE
11
- Requires-Dist: cctk>=0.2.18
12
- Requires-Dist: httpx>=0.25
13
- Requires-Dist: numpy>=1.24
14
- Requires-Dist: stjames>=0.0.23
15
11
 
16
12
  # Rowan Python Library
17
13
 
18
14
  [![pypi](https://img.shields.io/pypi/v/rowan-python.svg)](https://pypi.python.org/pypi/rowan-python)
19
- [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
15
+ [![pixi](https://img.shields.io/badge/Powered_by-Pixi-facc15)](https://pixi.sh)
16
+ [![ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
20
17
 
21
18
  The Rowan Python library provides convenient access to the Rowan API from applications written in the Python language.
22
19
 
@@ -1,7 +1,8 @@
1
1
  # Rowan Python Library
2
2
 
3
3
  [![pypi](https://img.shields.io/pypi/v/rowan-python.svg)](https://pypi.python.org/pypi/rowan-python)
4
- [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
4
+ [![pixi](https://img.shields.io/badge/Powered_by-Pixi-facc15)](https://pixi.sh)
5
+ [![ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
5
6
 
6
7
  The Rowan Python library provides convenient access to the Rowan API from applications written in the Python language.
7
8
 
@@ -0,0 +1,18 @@
1
+ import cctk
2
+ import rowan
3
+
4
+ rowan.api_key = "rowan-sk..."
5
+ client = rowan.Client()
6
+
7
+ # load molecule by name (cctk can also load in a variety of file formats)
8
+ molecule = cctk.Molecule.new_from_name("cyclobutane")
9
+
10
+ # run calculation remotely and return result
11
+ result = client.compute(
12
+ molecule,
13
+ name="opt cyclobutane",
14
+ method="b97-3c",
15
+ tasks=["optimize", "charge", "dipole"]
16
+ )
17
+
18
+ print(result)