Skip to main content

Awesome cli tool to try out python packages

Project description

Latest version released on PyPi Package license

try is an easy-to-use cli tool to try out python packages.

Demo

Features

  • Install specific package version from PyPI

  • Install package from GitHub

  • Install in virtualenv using specific version of python

  • Specify alternative python package import name

  • Keep try environment after interactive session

  • Launch interactive python console (optional ipython) with already imported package

  • Launch editor instead of interpreter

Usage

try requests
try requests --ipython
try requests -p 3.5
try requests -p /usr/bin/python3.4.1
try requests==2.8.1
try kennethreitz/requests --ipython
try click-didyoumean:click_didyoumean  # if python package name is different then pip package name
try requests --editor

Installation

Use pip to install try:

pip3 install trypackage

Help

try comes with an awesome CLI interface thanks to click.

Usage: try [OPTIONS] [PACKAGES]...

  Easily try out python packages.

Options:
  -p, --python TEXT   The python version to use.
  --ipython           Use ipython instead of python.
  -k, --keep          Keep try environment files.
  --editor            Try with editor instead of interpreter.
  --version           Show the version and exit.
  --help              Show this message and exit.

try was inspired by https://github.com/VictorBjelkholm/trymodule.

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

trypackage-0.1.4.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file trypackage-0.1.4.tar.gz.

File metadata

  • Download URL: trypackage-0.1.4.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for trypackage-0.1.4.tar.gz
Algorithm Hash digest
SHA256 926e8df27a67aa49261289b988965660d237e4db877fc2532834c8b2e805448a
MD5 6d76c21bc02b138adc4aec1e19d17c50
BLAKE2b-256 ed9c2f9e1ba7da2835f6df1fc543bbe2bf76ecb69514d8e69cfd3721748a8931

See more details on using hashes here.

Provenance

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