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.3

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.3
File Size Uploaded Provenance Actions
nwon_baseline-0.4.3.tar.gz 11.5 kB Without provenance Details for nwon_baseline-0.4.3.tar.gz

Built distribution (wheel)

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

Total release size: 34.9 kB

Release files / nwon_baseline-0.4.3.tar.gz

Download URL nwon_baseline-0.4.3.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dc572d7fb970718c4449e7602cd1c2c23c59f5ed176cfa63e534cc81f6f5d3a5
BLAKE2b-256 checksum
How to use checksums
f4c3ecd609568aa2dc0ea7675f3c844cedd61be1171ac443a2c305d78cb9be44
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.3-py3-none-any.whl

Download URL nwon_baseline-0.4.3-py3-none-any.whl
Size 23.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49825a7e3860d38c9dd095bdf77d6f9c10cdd20cb17c9682f7edd5345e2e67a0
BLAKE2b-256 checksum
How to use checksums
be1ad5229f88dc5390e87d88db772dbbb9a5aa50417680aebdc3c49f05b91152
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.3

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.3 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