Skip to main content

Write oneline python code easily and have fun

Project description

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

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

onelinerise-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

onelinerise-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file onelinerise-1.0.0.tar.gz.

File metadata

  • Download URL: onelinerise-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.0

File hashes

Hashes for onelinerise-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6fd60b9c08c936250a84b19d987d84d4fe9a3fb4779c8277240c523f72079d08
MD5 f5b19023c714f53c8efbaab3f1606d2b
BLAKE2b-256 237cd8b08fbbced6de98f6d96cd6a075338503a2643d3efc0ebe93c41f618e53

See more details on using hashes here.

File details

Details for the file onelinerise-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: onelinerise-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.0

File hashes

Hashes for onelinerise-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 337417e69b5e39459b747d0eb3b07199edc922ffa36db93488c1fcd7ca747136
MD5 776a9bff878091777db7f62af8ca61ff
BLAKE2b-256 26e6ca41661fe465d5271bbb4d8962dd88bba29dd71ca9f00fe12d0cf04ffc1b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page