Skip to content

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

License

Notifications You must be signed in to change notification settings

mauricelambert/PyOneLiner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages