Skip to main content

Pythonesque is a package of functions to make Python code more readable to non-Python programmers.

Project description

Pythonesque is a package of functions to make Python code more readable to non-Python programmers.

do not understand

Python is one of the most readable programming languages.

However, there are some areas which are are not intuitive to non-Python progammers, and especially non-programmers.

For example, the range() function and its parameters can be a source of confusion.

Other programming constructs, eg. modulus operator, are obvious to programmers, but can be a real stumbling block for others.

The aim of this package is to to facilitate writing pseudo code (that is actually Python code) in order to to convey logic more easily to non-Python programmers, or perhaps even non-programmers.

If Python code can be written to resemble pseudo code, it would be a great way to:

  • communicate your ideas

  • demonstrate logic

  • allow stakeholders to play with your pseudo code

Installation

Use the package manager pip to install Pythonesque.

pip install pythonesque

Usage

Example:

from pythonesque import consecutive_numbers
# or specify sub-modules:
# from pythonesque.series import consecutive_numbers

# much less confusing to non-programmers than "range(10, 0, -1)"
for count in consecutive_numbers(10, 1):
    print(count)
print("Blast off!")

For more examples, please refer to the Documentation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

pythonesque-0.0.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

pythonesque-0.0.2-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pythonesque-0.0.2.tar.gz.

File metadata

  • Download URL: pythonesque-0.0.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.0

File hashes

Hashes for pythonesque-0.0.2.tar.gz
Algorithm Hash digest
SHA256 16393839bfc988784104de8abc8bdb1c067cf7c1786cc7c8c1415dc9f8a36cc1
MD5 e8ffbbdd6f8dadc7c6c95f3bda39480d
BLAKE2b-256 cf744d50d80311f37f49654f128fd57edd19384846c07337fe4c18701534a121

See more details on using hashes here.

File details

Details for the file pythonesque-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pythonesque-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.0

File hashes

Hashes for pythonesque-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 881b2debd61b26c78a302be2158b22b8535bb40e676515812c16a7c026483233
MD5 723c558addb53e2e908d9b3a477e3de9
BLAKE2b-256 fdfe74bd7926bc948c090ea03e586a6e899ab4d71735a6dac67089c3fa2901cf

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