Skip to main content

published

Python library that serves as an example/template for a package publishing guide.

PyPI version and link. travis coveralls

Purpose

This library is an illustration of the various tasks and components involved in the process of publishing a small open-source Python package on PyPI, including establishment of linting standards, implementation of unit tests, measurement of coverage, and basic continuous integration.

Package Installation and Usage

The package is available on PyPI:

python -m pip install published

The library can be imported in the usual ways:

import published
from published import published

Testing and Conventions

All unit tests are executed and their coverage is measured when using nose (see setup.cfg for configuration details):

nosetests

Alternatively, the unit tests that are included in the module itself can be executed using doctest:

python published/published.py -v

Style conventions are enforced using Pylint:

pylint published

Contributions

In order to contribute to the source code, open an issue or submit a pull request on the GitHub page for this library.

Versioning

The version number format for this library and the changes to the library associated with version number increments conform with Semantic Versioning 2.0.0.

Metadata

Release files for published 0.1.1

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

Source distribution (sdist)

Source distribution for published 0.1.1
File Size Uploaded
published-0.1.1.tar.gz 2.8 kB Details

Built distribution (wheel)

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

Total release size: 6.3 kB

Release files / published-0.1.1.tar.gz

Download URL published-0.1.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4e0659c9f2205eb2dd1315a58e3056174eb041b9edb806f31073168137726896
BLAKE2b-256 checksum
How to use checksums
4afc17881e8685308be638cae730c75b72860d491fcd07cba42cfa1f150046f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.0

Release files / published-0.1.1-py3-none-any.whl

Download URL published-0.1.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d594559bafe678bf45f750afb9799fb02364b44428c4913f74ae0e4535e8ba83
BLAKE2b-256 checksum
How to use checksums
848c8273c2d1aa2e5cf380ca945072feaa87ecf80673a10cf2811c2ec6036009
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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