A collection of python utilities for StellaSpark Nexus Digital Twin
Project description
Description
A collection of python utilities for StellaSpark Nexus Digital Twin technology.
Usage
from stellaspark_utils.db import get_indexes
from stellaspark_utils.text import parse_time_placeholders
Development
Create an environment:
cd <project_root>
set PIPENV_VENV_IN_PROJECT=1 && pipenv --python 3.7.9 # Create a .venv folder in current dir so it's easy to use/maintain by your idea
pipenv shell
pip install -r requirements.txt
pip install -r requirements_dev.txt
Autoformat code:
cd <project_root>
pipenv shell
black . # Make the code look nice
isort . # Sort the import statements
flake8 # Validate the code syntax
Prepare release
- Create a Pypi account and after registering, make sure your account has a pypi token
- Update version in stellaspark_utils/setup.py
- Update the CHANGES.rst with a change message and release date of today
- Optionally, autoformat code (see above)
Release manually
cd <project_root>
pipenv shell # Activate pipenv environnment (see 'Create an environment' above)
python setup.py sdist # Create distribution (with a '.tar.gz' in it)
twine check dist/* # Validate all distibutions in stellaspark_utils/dist
twine upload dist/stellaspark_utils-<version>.tar.gz # Upload distribution to pypi.org
# You will be prompted for a username and password.
# - for the username, use __token__ (yes literally '__token__')
# - for the password, use the pypi token value, including the 'pypi-' prefix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stellaspark-utils-0.9.tar.gz
(10.1 kB
view details)
File details
Details for the file stellaspark-utils-0.9.tar.gz
.
File metadata
- Download URL: stellaspark-utils-0.9.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6653163ec9c16603cc5f7784f486ef0082f51bdf6adc9a1995a3362085117a |
|
MD5 | 3ea46aa0da64ce3874f85c6dabebf2b5 |
|
BLAKE2b-256 | 86c44ec23e1a3b4fa8ca9c2b6c60e6781dba80a3e7697f174cb4d727fa886a34 |