API access for the Southern African Large elescope (SALT).
Project description
pyastrosalt
Installation
pip install pyastrosalt
Development and deployment
uv is used as the package manager for this project. There are several ways to install uv; see the official [installation instructions]((https://docs.astral.sh/uv/getting-started/installation/).
Managing dependencies
Use uv's add command for adding dependencies. For example:
uv add numpy
To add an optional dependency, use the --optional option. For example, if you want to add pyjwt to the optional group secure:
uv add --optional secure pyjwt
Optional groups are listed in the project.optional-dependencies section of pyproject.toml.
In case the dependency is required for development purposes only, you should use the --dev option. For example, the following will add pytest to the development only group:
uv add --dev pytest
Development only dependency groups are listed in the dependency-groups section of pyproject.toml. They `re not included in the published package.
Documentation
The documentation is generated using Materials for MkDocs and mkdocstrings, and all its files are located in the /docs folder. You can view
the generated files by running
mkdocs serve
There also is a pdm script for building the documentation files.
| Script | Description |
|---|---|
docs |
Build the documentation |
However, contrary to mkdocs serve, this command does not let you preview the documentation as you write. It is mostly intended for testing purposes.
Deployment
There is a GitHub workflow (publish.xml) for deploying the package to a package repository (such as PyPI). This workflow assumes that the GitHub repository is a trusted publisher. Refer to the PyPI documentation on how to create a PyPI project with a trusted publisher.
in addition, the workflow generates the documentation files and publishes them as a GitHub page (at https://saltastroops.github.io/PyAstroSALT).
To see the deployed documentation, you might have to tweak some settings. Click on Settings in the top menu and then on Page in the sidebar menu. Choose to deploy from a branch, select gh-pages as the branch and / (root) as the folder, and click on the Save button.
The workflow is triggered whenever a release is created for the GitHub repository. The tag for the release must be the package's version number preceded by a "v". For example, if the package version is "1.4.2", the tag must be "v1.4.2". The tag must be for the current commit in the main branch.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyastrosalt-0.1.0.tar.gz.
File metadata
- Download URL: pyastrosalt-0.1.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90b394409093d107fec995cd4a489b838a56b2324d1fd168e459b036e4fe20e
|
|
| MD5 |
5bab6c1fc64c53a74326bcba3727151b
|
|
| BLAKE2b-256 |
487cab0aec374b910d6603dc397d0f67701184d4a4ab0dc1c23a316624e6618e
|
File details
Details for the file pyastrosalt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyastrosalt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec4a9a28726acaf9dc015fd2fbb1a4f5f3ac5e5e5ca07fe1ffb08244765d42bf
|
|
| MD5 |
b62ddf9c6bb9e27c1cb49d426c2ae316
|
|
| BLAKE2b-256 |
09b25597db59c285af553d372b8d22176312cf5575a732406a3aa9b2ff98c5ac
|