OneLiner
Description
This package implement a code OneLiner for python (write a script and get it in oneline).
Requirements
This package require :
- python3
- python3 Standard Library
Installation
pip install PyOneliner
Examples
Command lines
- For python console:
PyOneLiner script.py
PyOneLiner script.py --mode "uu"
- For bash console:
PyOneLiner script.py --mode "base64" --console "bash"
PyOneLiner script.py --mode "unicode" --console "bash"
- For windows cmd:
PyOneLiner script.py --mode "gzip" --console "batch"
PyOneLiner script.py --mode "ord" --console "batch"
Python3
from PyOneLiner import OneLiner
from os import system
oneliner = OneLiner("script.py", type_="python")
oneliner.xor()
oneline = oneliner.done()
exec(oneline)
oneliner.ascii85()
oneline = oneliner.done()
exec(oneline)
oneliner = OneLiner("script.py", type_="bash") # Linux
oneliner.lzma()
oneline = oneliner.done()
system(oneline)
oneliner.binary()
oneline = oneliner.done()
system(oneline)
oneliner = OneLiner("script.py", type_="batch") # Windows
oneliner.base16()
oneline = oneliner.done()
system(oneline)
oneliner.bz2()
oneline = oneliner.done()
system(oneline)
Link
Licence
Licensed under the GPL, version 3.
Metadata
Release files for PyOneLiner 0.0.1
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 |
|---|---|---|---|---|
| PyOneLiner-0.0.1.tar.gz | 16.1 kB | Without provenance | Details for PyOneLiner-0.0.1.tar.gz |
Release files / PyOneLiner-0.0.1.tar.gz
| Download URL | PyOneLiner-0.0.1.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbb574e3038cdeb5aa492c9d171525ccbbd0038e36f90bab2225546486fa04a9
|
|
BLAKE2b-256 checksum How to use checksums |
f6fe87476f6d7e13accd0bc574afe1742d1a7580091cacff65443c4e0b24fddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
|
Security for PyOneLiner 0.0.1
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.