A toy project to demonstrate Python development environment and toolchain
Project description
pynaive
A toy project to demonstrate Python development environment and toolchain.
The script tools/docker.sh creates, runs and executes a docker container for
developing the project. The script tools/full_check.sh runs style checkes,
linters and tests. The project can be built with
python3 setup.py sdist bdist_wheel command.
host> cd <project_root_dir>
host> ./tools/docker.sh
pynaive_focal
container> ./tools/full_check.sh
Success: no issues found in 2 source files
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
========================= test session starts ==========================
platform linux -- Python 3.8.5, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
rootdir: /pynaive
plugins: flake8-1.0.6
collected 7 items
tests/test_math.py ....... [100%]
======================= 7 passed in 0.03 seconds =======================
container> python3 setup.py sdist bdist_wheel
<lots_of_output_here>
container> twine check dist/*
container> twine upload --repository-url https://test.pypi.org/legacy/ dist/*
container> twine upload dist/*
Instanllation
Exectute the following in the command line:
shell> pip3 install pynaive
Example
The simplest snippet which uses the package:
shell> python3
>>> from naive.math import average
>>> average([2.5, 0.0, -1.0, 3.5])
1.25
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pynaive-0.2.0.tar.gz.
File metadata
- Download URL: pynaive-0.2.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
124a510f14e5470c0db6c6dc263a74405385d8106ad9a9fc4cdc68bd13e54c1d
|
|
| MD5 |
c912a7270e6e30e570d88edcf4160267
|
|
| BLAKE2b-256 |
87d8388bafca681a71508997480aaeb6c346cd0b9bc38f3a057050dedb93b356
|
File details
Details for the file pynaive-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pynaive-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14e4d6ac27ba18a55f2df67dad9dc7bf41e92adf8b5e73111a5f96a6b7d0f507
|
|
| MD5 |
c3da22f18ba41250cdf5fedb42977ec1
|
|
| BLAKE2b-256 |
553c592e1034d8f190161caafcdd39cd427e6fe7da18f5a377f557315f803df2
|