Skip to main content

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, if you download by github

$ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple-sample-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_sample-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file simple-sample-0.0.1.tar.gz.

File metadata

  • Download URL: simple-sample-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for simple-sample-0.0.1.tar.gz
Algorithm Hash digest
SHA256 10fb45756ec63a3a0586caeabb4773961b51ab85fb1e90257a3f2a1efb430d4b
MD5 888083de64f4479d6d55c1bb442f5856
BLAKE2b-256 dd79bd24d8ae1f7081316a977db204ceca442b4aca3ebbcd9bd285488dc00d44

See more details on using hashes here.

File details

Details for the file simple_sample-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: simple_sample-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.8

File hashes

Hashes for simple_sample-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf69e53e5d7efcf9af27f28fe018bbec5e78f68cf0000ca58ae2bc02dba6a913
MD5 3773bb4b069759c2499df43811671aff
BLAKE2b-256 ed072ea51ffbb0f20d2e643c9ccfce6e529ac980e0a62c45279a955ad6bd89f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page