Skip to main content

A superset of Python with many new features, including full JS integration, multiline comments, header files, and optional curly brackets around control statements

Project description

This is reStructuredPython 2

Publish Python Package Latest Version PyPI Downloads Python 3.11 3.12 3.13

The all in one, new python. reStructuredPython aka 'rePython' is a superset of python with many new features, such as header files, similar to C and C++, Optional Javascript-like syntax with curly brackets {} around control loops, function chanining and more. All the features can be found in the syntax/feature guide of our documentation https://restructuredpython.readthedocs.io/en/latest/reference/Syntax_Guide.html

To download the reStructuredPython compiler using the python package index:

pip install --upgrade restructuredpython

Download our vscode extension with intellisense support from the visual studio marketplace

To use the reStructuredPython compiler:

repy path/to/your/file.repy

It is that simple!

Basics

reStructuredPython code is written in a file extension .repy and reStructuredPython header files are written with the file extension .cdata. Functions can now be chained in a more readable syntax. Control loops an be defined with curly brackets, instead of colons. View entries 1, 2, and 3 of the syntax guide for more details.

Contributing

Please contribute and raise issues! We just started and this is a pioneering project. Fork the repository, make your changes, update the documentation in the docs/* folder, add examples (if applicable) in the tests/.repy and their compiled versions in tests/.py directory as well as in docs/source/tutorials/programs and in docs/source/tutorials/compiled_programs. Once you have ensured all features work of the compiler by test-compiling the other files in tests/.repy/*, make a pull request with the github issue number is applicable, short concise title and description of your changes. Warining: The first paragraph of the pull request description will go to be part of the changelong, so keep it short and clear. PLEASE DO NOT label your changes as a new version. That will be done manually or by a bot.

Changelog

View the changelog at https://restructuredpython.readthedocs.io/en/latest/changelog.html

Common mistakes

These mistakes will reslut in a syntax error thrown by the REPY compiler or invalid python. View the error index at https://restructuredpython.readthedocs.io/en/latest/compiler/error_index/

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

restructuredpython-2.4.0.tar.gz (136.9 kB view details)

Uploaded Source

Built Distribution

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

restructuredpython-2.4.0-py3-none-any.whl (140.1 kB view details)

Uploaded Python 3

File details

Details for the file restructuredpython-2.4.0.tar.gz.

File metadata

  • Download URL: restructuredpython-2.4.0.tar.gz
  • Upload date:
  • Size: 136.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for restructuredpython-2.4.0.tar.gz
Algorithm Hash digest
SHA256 1a7f33d4956401bc94a39bf6c525fef7651e293385c7e094c0b25b4a5d36ffe5
MD5 8ea65b8e6df6415076b115c598a01eb1
BLAKE2b-256 768ca8ac133674e4fb3d329a21d57f99ef3ec8c81dba3a41a87ca17e766c25b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for restructuredpython-2.4.0.tar.gz:

Publisher: publish.yml on sharktide/restructuredpython

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file restructuredpython-2.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for restructuredpython-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f55922b099dcd3179455358c814f68ab45060c10f4799f69656393bad2fbf0c
MD5 d58f2145973dd16f7f29ce987bb515fb
BLAKE2b-256 86787937415d77cf409b382e893aac31fef6b53c278418b87ef9964efcd58376

See more details on using hashes here.

Provenance

The following attestation bundles were made for restructuredpython-2.4.0-py3-none-any.whl:

Publisher: publish.yml on sharktide/restructuredpython

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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