Skip to main content

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

Metadata

Release files for pythonesque 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pythonesque 0.0.2
File Size Uploaded Provenance Actions
pythonesque-0.0.2.tar.gz 7.1 kB Without provenance Details for pythonesque-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pythonesque 0.0.2
File Interpreter ABI Platform Actions
pythonesque-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for pythonesque-0.0.2-py2.py3-none-any.whl

Total release size: 11.4 kB

Release files / pythonesque-0.0.2.tar.gz

Download URL pythonesque-0.0.2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
16393839bfc988784104de8abc8bdb1c067cf7c1786cc7c8c1415dc9f8a36cc1
BLAKE2b-256 checksum
How to use checksums
cf744d50d80311f37f49654f128fd57edd19384846c07337fe4c18701534a121
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Release files / pythonesque-0.0.2-py2.py3-none-any.whl

Download URL pythonesque-0.0.2-py2.py3-none-any.whl
Size 4.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
881b2debd61b26c78a302be2158b22b8535bb40e676515812c16a7c026483233
BLAKE2b-256 checksum
How to use checksums
fdfe74bd7926bc948c090ea03e586a6e899ab4d71735a6dac67089c3fa2901cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Security for pythonesque 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page