A simple sample of a Python package prototype
Project description
This package contains a simple sample of a Python package prototype. It is part of the educational repositories to learn how to write stardard code and common uses of the TDD.
See the documentation and how to do it on readthedocs. And see the development of this code step by step
Installation
The package is self-consistent. So you can download the package by github:
$ git clone https://github.com/bilardi/python-prototype
Or you can install by python3-pip:
$ pip3 install simple_sample
Usage
Read the unit tests in tests/testMyClass.py file to use it. This is a best practice. You can read also the documentation by command line,
$ python3
>>> from simple_sample.myClass import MyClass
>>> print(MyClass.__doc__)
>>> help(MyClass)
>>> quit()
If you want to see the local documentation, that you have downloaded by github, you can use the same steps but before you must to change the directory
$ cd python-prototype
Development
It is common use to test the code step by step and unittest module is a good beginning for unit test and functional test.
Test with unittest module
$ cd python-prototype
$ python3 -m unittest discover -v
Change Log
See CHANGELOG.md for details.
License
This package is released under the MIT license. See LICENSE for details.
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
File details
Details for the file simple-sample-0.0.4.tar.gz
.
File metadata
- Download URL: simple-sample-0.0.4.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6042a75c501b3686a0bcf9658e5e343a4557565c610551cd50444e95dd73c0c5 |
|
MD5 | 09dd3ea395277d6eef4eb214b8e0f92c |
|
BLAKE2b-256 | c3b6a67f70ae403c31dfc57c1326a03de058f65e5e92618787468871fd3bdbf3 |
File details
Details for the file simple_sample-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: simple_sample-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 723d7a1b456c15576ea7f821885484fa8bba037613cf5467e97dce1cc8c4ead4 |
|
MD5 | c34925603e5a423d967539124bf49f21 |
|
BLAKE2b-256 | 7bd7ddef1eb8fb3d22532ea08b12463354b61bef11533e96d2132eb033cea6b2 |