OneLineriser
One-line your code easily but still with the fun of doing so!
Have YOU ever wanted to write one-line Python code, but don't have the sanity to do it? Do YOU want to write one-line code YOURSELF and not be a script kiddie or do ctrl-c ctrl-v?
Well not to worry, because I am here to remove your braincells for you! Introducing... :tada:
The OneLineriser heh say that ten times real quick
How to use
Installation
You can install this as a package by running
pip install onelinerise
Alternatively, install the master branch at
pip install git+https://github.com/Jus-Codin/OneLinerise
Usage
from onelineriser import OneLinerise
OneLinerise(globals()).print("test").literal(10).returned.bit_length().RET_OBJ.save_last_as("bruh").print_last.print(bruh)
# Output
>>> test
>>> 4
>>> 4
Why should you use this
Well... you really shouldn't. Truth be told I just randomly came up with this idea and made it, and it really isn't the best implementation. There definitely is a better way to do this, but I currently probably don't have the skills to do it
More reasons not to use
- No type hinting yet
- Inefficient code
- Not fully implemented
- Bruh it's unreadable man don't even try putting this in your projects
Sidenote
I will try to come back to this, in fact I have a few ideas in mind:
- Implement If-loops, For-loops, While-loops and such
- Better documentation
- Improved implementation
- Customisable settings? Maybe?
- And maybe even more
If you do have suggestions or want to contribute, do feel free to open an issue or pull request. As this repo is informal, I'm not putting guidelines and stuff for this project, all just default barebones settings
Metadata
Release files for onelinerise 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onelinerise-1.0.0.tar.gz | 4.5 kB | Without provenance | Details for onelinerise-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onelinerise-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for onelinerise-1.0.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / onelinerise-1.0.0.tar.gz
| Download URL | onelinerise-1.0.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fd60b9c08c936250a84b19d987d84d4fe9a3fb4779c8277240c523f72079d08
|
|
BLAKE2b-256 checksum How to use checksums |
237cd8b08fbbced6de98f6d96cd6a075338503a2643d3efc0ebe93c41f618e53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.0
|
Release files / onelinerise-1.0.0-py3-none-any.whl
| Download URL | onelinerise-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
337417e69b5e39459b747d0eb3b07199edc922ffa36db93488c1fcd7ca747136
|
|
BLAKE2b-256 checksum How to use checksums |
26e6ca41661fe465d5271bbb4d8962dd88bba29dd71ca9f00fe12d0cf04ffc1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.0
|
Security for onelinerise 1.0.0
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.