Skip to main content

A tool to manage python projects and their dependencies.

Project description

psycho

Python project management automation using standard build tools.

Status

This project is a working prototype.

It can be installed from pypi. Its probably best to install as a user dependency, or in a virtual environment.

pip install psycho

Overview

Python projects are migrating away from using setup.py to pyproject.toml. While a number of excellent projects provide custom tooling, there is no built in support for automating project management with the standard tools:

Psychotic Commands

The following are supported.

  • init
  • install
  • uninstall
  • build
  • publish

init

Makes a new pyproject.toml. The command prompts for input.

$ psycho init
Name: my-package
Version [0.1.0]: 
Description: My package
Author: rob
Email: rob@example.com
Initializing my-package

Alternatively values can be provided as arguments.

$ psycho init --name my-package --version 0.1.0 --description "My package" --author "Rob Blackbourb" --email "rob@example.com"

install

When used without specifying packages this command installs the project as editable.

$ psycho install

This is the equivalent of pip install --editable ..

When used with a package requirement, the requirement is written to the pyproject.toml and the package is installed into the python environment using pip.

$ psycho install "pandas>=1.5.3"

The -optional flag can be used (with a group name) to add an optional dependency.

$ psycho install --optional dev pytest

Most the flags used by pip are available to this command.

uninstall

This command removes a package from the pyproject.toml file, and uninstalls it using pip.

$ psycho uninstall pandas

This can be used with the optional flag (with a group name) to uninstall an optional dependency.

$ psycho install --optional dev pytest

build

The build command will build a package, prior to publishing it.

$ psycho build

This is the equivalent of python -m build.

publish

The publish command will upload a package with twine.

$ psycho publish

This is the equivalent of twine upload dist/*.

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

psycho-1.0.0a4.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psycho-1.0.0a4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file psycho-1.0.0a4.tar.gz.

File metadata

  • Download URL: psycho-1.0.0a4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for psycho-1.0.0a4.tar.gz
Algorithm Hash digest
SHA256 31b3a1a90fe3507ff7885d30e86e3b11a0a93dc104c0ae14e31046dff20bdfa8
MD5 58104a6cc4373c333155e573eab67cbd
BLAKE2b-256 051be1e5625f5297a0288f8f082b6a09714dd64d09a1701fcdd14116c5908ec7

See more details on using hashes here.

File details

Details for the file psycho-1.0.0a4-py3-none-any.whl.

File metadata

  • Download URL: psycho-1.0.0a4-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for psycho-1.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 ffb9b44718774ff51c9dd62d30ded4928688e70cc1a75eff1e15cce06d0b4e57
MD5 2d4686435e23127f992e21240a4546d4
BLAKE2b-256 c7645443c6db404d381f576a61dd61b190e26223310f1bed5480fbb41b53900b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page