Skip to main content

Easily install kenjyco libs

Project description

Install Options

Use pip to install kenjyco-libs, ideally to a virtual environment (venv). You can choose kenjyco-libs (very light weight), "kenjyco-libs[full]" (everything), or something in between.

  • pip install kenjyco-libs

  • pip install "kenjyco-libs[bs4]"

    • Includes: beautifulsoup4, kenjyco-libs, lxml

    • Also requires system requirements for lxml

    $ sudo apt-get install -y libxml2 libxslt1.1 libxml2-dev libxslt1-dev
    
    or
    
    $ brew install libxml2
  • pip install "kenjyco-libs[data]"

  • pip install "kenjyco-libs[dev]"

  • pip install "kenjyco-libs[full]"

    • Includes: “kenjyco-libs[bs4,data,dev,ipython]”

  • pip install "kenjyco-libs[ipython]"

    • Includes: ipython, kenjyco-libs

  • pip install "kenjyco-libs[nosql]"

  • pip install "kenjyco-libs[sql]"

    • Includes: expectation-helper, kenjyco-libs, sql-helper

    • Also requires the pg_config executable

    • expectation-helper is only included if using Python 3.8+

    $ sudo apt-get install -y libpq-dev
    
    or
    
    $ brew install postgresql
  • pip install "kenjyco-libs[xmljson]"

    • Includes: kenjyco-libs, xmljson

Setup and Usage

The first time that kenjyco_libs is imported, the sample settings.ini file will be copied to the ~/.config/kenjyco-libs directory.

[default]
package_repos_base_path = ~/repos/personal/packages
kenjyco_libs_repo_names = aws-info-helper, bg-helper, chloop, dt-helper, expectation-helper, fs-helper, input-helper, libs, mongo-helper, readme-helper, redis-helper, settings-helper, sql-helper, testing-helper, webclient-helper
dependency_repos_base_path = ~/repos/some-repos

[dev]
something =

[test]
something =

After installing with pip, you will want to run the provided ``kenjyco-dev-setup`` script. This will automatically clone kenjyco repos and their dependencies to the paths specified in settings.ini, then reinstall the packages in “editable mode” (i.e. the packages in the venv’s site-packages directory will be linked to the cloned kenjyco repos).

Use kenjyco-ipython to start ipython with all of the installed kenjyco packages automatically imported (keeping your ipython shell history clean from boilerplate import statements).

% venv/bin/kenjyco-dev-setup --help
Usage: kenjyco-dev-setup [OPTIONS]

  Clone missing repos and install more packages in editable mode

  Options:
    --help  Show this message and exit.


% venv/bin/kenjyco-ipython --help
Usage: kenjyco-ipython [OPTIONS]

  Start ipython with several things imported

Options:
  --no-vi      Do not use vi editing mode
  --no-colors  Do not use colors / syntax highlighting
  --help       Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

kenjyco_libs-0.0.10-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

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