Skip to main content

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, DatabaseManager
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   # 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
  1. Create a Pypi account and after registering, make sure your account has a pypi token
  2. Update version in setup.py
  3. Update the CHANGES.rst with a change message and release date of today
  4. Optionally, autoformat code (see above)
  5. Push changes to GitHub (preferably in a branch 'release__')
Release manually
cd <project_root>
rmdir /s /q "dist"                                      # Remove dist dir (to avoid uploading old distributions)                       
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/*                                     # 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


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-1.7.tar.gz (12.4 kB view details)

Uploaded Source

File details

Details for the file stellaspark-utils-1.7.tar.gz.

File metadata

  • Download URL: stellaspark-utils-1.7.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.9

File hashes

Hashes for stellaspark-utils-1.7.tar.gz
Algorithm Hash digest
SHA256 5a5464a4a6714ef8a6c514f39fd903164863b466af27cbe6b1cbef73048e830f
MD5 d6fb103e422544ec6421d9ca5f81adf2
BLAKE2b-256 39d2559d3279200ff6add11b0fccc0385251d9ff1755c7588f89c46c9d0c8ba4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page