Skip to main content

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

  1. For python console:
PyOneLiner script.py
PyOneLiner script.py --mode "uu"
  1. For bash console:
PyOneLiner script.py --mode "base64" --console "bash"
PyOneLiner script.py --mode "unicode" --console "bash"
  1. 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

Github Page

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)

Source distribution for PyOneLiner 0.0.1
File Size Uploaded
PyOneLiner-0.0.1.tar.gz 16.1 kB Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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