skip to navigation
skip to content

Not Logged In

manuscript 0.1.0

Manuscript helps you manage your python scripts and their dependencies

Latest Version: 0.2.0

Manuscript helps you manage your python scripts and their dependencies

Python still is a scripting language, and it is awesome for this. Moreover, we now have some great libraries that make writing scripts even easier, like requests, docopt or pathlib. However, having to install them system-wide, or start worrying about virtualenv for just one script is annoying. Manuscript is here to help you handle that.

Just add a line of the form #deps: requests docopt pathlib to your script, and manuscript will install them in a virtualenv and create a wrapper for you.


You can get it on pypi with the usual pip install manuscript.

You can also install manuscript using manuscript! For this, use this line get manuscript and its dependencies, and use manuscript to install itself:

cd /tmp && wget && python3 install -c

Once it's done, I recommend you add ~/.manuscript/bin/ to your path, to make it easier to access installed scripts.


You just wrote that uses requests and docopt, and you want to use it on your system without worrying about the dependencies. Just add this line somewhere in your script:

#deps requests docopt

Then run manuscript:

manuscript install

This will install all the dependencies in a virtualenv and create a wrapper around the script as ~/.manuscript/bin/some_awesome_script.

The virtualenv will use the interpreter mentioned in the script's shebang, falling back to python if none is found. You can force an interpreter with the -i option, like so:

manuscript install -i pypy

If you edit you script to add more dependencies, just run:

manuscript check-deps

This will install all missing dependencies for all the scripts.

Finally, if you want to use manuscript on a script that won't last (something downloaded from the internet that sits on your /tmp for example), just add the -c argument: manuscript will first copy the script to a safe place, then do the whole dance.


The source code is available on github.

Bug reports and pull requests welcomed !


This project is made by Georges Dubus <>. You can find me on twitter: @georgesdubus.


0.1.0 (2013-11-11)

  • First release on PyPI.
File Type Py Version Uploaded on Size
manuscript-0.1.0.tar.gz (md5) Source 2013-11-11 5KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 34 downloads in the last week
  • 223 downloads in the last month