Skip to main content

NWON Python baseline package

Source: python-packages/packages/python-baseline.

This package provides some basic python functions that can be used across several projects.

The dependencies of the project are kept to a minimum in order to prevent version conflicts with other projects.

Package is meant for internal use at NWON as breaking changes may occur on version changes. This may change at some point but not for now 😇.

Development Setup

We recommend developing using poetry.

This are the steps to setup the project with a local virtual environment:

  1. Tell poetry to create dependencies in a .venv folder withing the project: poetry config virtualenvs.in-project true
  2. Create a virtual environment using the local python version: poetry env use $(cat .python-version)
  3. Install dependencies: poetry install

Prepare Package

As we want to include types with the package it is not as straight forward as just calling poetry build 😥.

We need to:

  1. Clean dist folder
  2. Bump up the version of the package
  3. Build the package

Luckily we provide a script for doing all of this python scripts/prepare.py patch. Alternatively you can run the script in a poetry context poetry run prepare patch. The argument at the end defines whether you want a patch, minor or major version bump.

The final zipped data ends up in the dist folder.

Publish Package

Before publishing the package we need to:

  1. Add test PyPi repository: poetry config repositories.testpypi https://test.pypi.org/legacy/
  2. Publish the package to the test repository: poetry publish -r testpypi
  3. Test package: pip install --index-url https://test.pypi.org/simple/ nwon_baseline

If everything works fine publish the package via poetry publish.

Metadata

Release files for nwon_baseline 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nwon_baseline 0.4.2
File Size Uploaded Provenance Actions
nwon_baseline-0.4.2.tar.gz 400.7 kB Without provenance Details for nwon_baseline-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nwon_baseline 0.4.2
File Interpreter ABI Platform Actions
nwon_baseline-0.4.2-py3-none-any.whl Python 3 none any Details for nwon_baseline-0.4.2-py3-none-any.whl

Total release size: 423.9 kB

Release files / nwon_baseline-0.4.2.tar.gz

Download URL nwon_baseline-0.4.2.tar.gz
Size 400.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ac41805923122fe31845a4e899c2ef36a21a5c4bc022e5e91af79fa177017009
BLAKE2b-256 checksum
How to use checksums
41b55da6d1a47593c7777d7e4f94e032ce08d81cbadb0e8a1b2d3d0cee1359a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.6 Linux/6.8.0-149-generic

Release files / nwon_baseline-0.4.2-py3-none-any.whl

Download URL nwon_baseline-0.4.2-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
759317c220f797737a052bfbeabda6979b62e1a3dae1586501e09499ac08d11e
BLAKE2b-256 checksum
How to use checksums
96297c6b8250fbc3acb9a17937e7eb32acb1e0ec54772bc6f18e2cdd8d51c949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.6 Linux/6.8.0-149-generic

Security for nwon_baseline 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page