Skip to main content

davsemone

davsemone is a lightweight educational Python package that prints the source code of five DAV practicals directly into a Python terminal or Jupyter Notebook output cell.

Installation

After the package is published to PyPI:

pip install davsemone

Use in Jupyter Notebook

import davsemone

davsemone.prac1()

The output cell displays the Practical 1 Python source code itself.

Available commands:

davsemone.prac1()
davsemone.prac2()
davsemone.prac3()
davsemone.prac4()
davsemone.prac5()

# Alternative forms:
davsemone.practical1()
davsemone.show(1)

# Return code as a string instead of printing:
code = davsemone.get_code(1)

Publish to PyPI

From the project folder:

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

PyPI will ask for authentication. The recommended method is to use a PyPI API token as the password and __token__ as the username.

Test on TestPyPI first

python -m twine upload --repository testpypi dist/*

Then install the test release with:

pip install --index-url https://test.pypi.org/simple/ davsemone

Updating the package

Before publishing a later version, change the version in pyproject.toml, for example from 0.1.0 to 0.1.1, delete old files from dist/, rebuild, and upload again. PyPI does not allow re-uploading the same version number.

Source basis

The practical code bundled in this project was extracted from the five Jupyter notebooks supplied for this package.

Metadata

Release files for davsemone 0.1.0

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

Source distribution (sdist)

Source distribution for davsemone 0.1.0
File Size Uploaded
davsemone-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

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

Total release size: 12.9 kB

Release files / davsemone-0.1.0.tar.gz

Download URL davsemone-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1307603e58ca2a69fa00851ac00cea43be2b521e325c674d3c1dbb6df49d7468
BLAKE2b-256 checksum
How to use checksums
53f647a76750bd67ade4d65ddb07ec73b4f9c61f2c5ab13a1acac1d49909f2c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / davsemone-0.1.0-py3-none-any.whl

Download URL davsemone-0.1.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a9f81683f600800630d202cf377d89453514b8f16190e537497cc246dbfe471
BLAKE2b-256 checksum
How to use checksums
b5c1a4372a8db05244a92f2c97f505f4b7c0e881048a2760cb8334f10b0db00e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

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