Skip to main content

This package implement a code OneLiner for python (write a script and get it in oneline).

Project description

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.

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

PyOneLiner-0.0.1.tar.gz (16.1 kB view details)

Uploaded Source

File details

Details for the file PyOneLiner-0.0.1.tar.gz.

File metadata

  • Download URL: PyOneLiner-0.0.1.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for PyOneLiner-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dbb574e3038cdeb5aa492c9d171525ccbbd0038e36f90bab2225546486fa04a9
MD5 07fa793c7a6cef6dad69dbe0a9d8877b
BLAKE2b-256 f6fe87476f6d7e13accd0bc574afe1742d1a7580091cacff65443c4e0b24fddf

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