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.3.tar.gz (8.3 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.3-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for pythonesque-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8975c1ee51366fa69c1f28458d4fe056ba2438dc23aef0ba85609be566f5efdd
MD5 5043ccda4dc2b4da93ff58a7201fcc2f
BLAKE2b-256 bc1bf2748beb11761bb62ad2da3fb086a3fb60084e60985859ec7421b2ec1da8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pythonesque-0.0.3-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.1

File hashes

Hashes for pythonesque-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3072ca419f663cc82bcf891357aead7f240585b84eb65cc8661197a8b59457cd
MD5 1a5362b76e2e71e505c2734955d7edeb
BLAKE2b-256 9472404b84a11e073e3796ae093f4aab2b376515372fdcce9dc10704338aec31

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