Skip to main content

Here’s a comprehensive documentation for your Bucket Dependency Manager, designed for easy understanding and practical use.


Bucket Dependency Manager Documentation

Author: Astridot

License: Makoschin Free Software License (MFSL)

Bucket is a lightweight, flexible dependency manager designed for managing projects in any language. With features like branching, version control, and pull request management, it supports collaborative development and simplifies dependency handling.


Features

  • Dependency Management: Add, edit, list, install, and remove dependencies.
  • Branching: Create, switch, list, and delete branches for isolated development workflows.
  • Versioning: Save, list, and rollback to specific project states with version snapshots.
  • Pull Requests: Create, list, view, and approve pull requests between branches.
  • Entrypoint Commands: Set and run entrypoint commands for your project.

Installation

Ensure you have Python 3.12 or later installed.

Using pip:

pip install bkt

CLI Commands

The CLI commands are invoked using bucket or bucket<version> (e.g. bucket6) after installation.


Getting Started

1. Initialize a Bucket

To start using Bucket in a project:

bucket init

This creates a .bucket directory and sets up the necessary structure.


2. Manage Dependencies

  • Add a dependency by specifying its name, source, and optional version or install command:
bucket dep add --name <name> --source <source> --version <version> --install-command <command>
  • List all dependencies:
    bucket dep list
    
  • Remove a dependency:
    bucket dep rm <name>
    
  • Install dependencies:
    bucket dep install <name>
    

Example:

bucket dep add --name requests --source https://pypi.org/project/requests --version 2.31 --install-command "pip install requests==2.31"

3. Manage Branches

Branches allow isolated development for specific dependencies.

  • Create a branch:
    bucket branch create --name <branch-name>
    
  • Switch to a branch:
    bucket branch switch --name <branch-name>
    
  • List branches:
    bucket branch list
    
  • Delete a branch:
    bucket branch rm --name <branch-name>
    

4. Handle Pull Requests

Collaborate by merging changes using pull requests.

  • Create a pull request:
    bucket pr create --source <source-branch> --target <target-branch> --description "<description>"
    
  • Approve and merge a pull request:
    bucket pr approve --id1 <pr-id> --id2 <pr-id2>
    
  • List open pull requests:
    bucket pr list
    
  • View a pull request:
    bucket pr info --id1 <pr-id> --id2 <pr-id2>
    

5. Version Control

Track changes with snapshots of your project's state.

  • Save a version:
    bucket vs commit
    
  • List saved versions:
    bucket vs history
    
  • Rollback to a version:
    bucket vs rollback --id1 <commit-id> --id2 <commit-id2>
    

6. Clean Up

Destroy the .bucket setup if no longer needed:

bucket destroy

Example Workflow

  1. Initialize a new project:
    bucket init
    
  2. Create and switch to a feature branch:
    bucket branch create flask-dependency
    bucket branch switch flask-dependency
    
  3. Add Flask dependency:
    bucket dep add --name flask --source https://pypi.org/project/flask --version 2.2.3 --install-command "pip install flask==2.2.3"
    
  4. Commit the addition:
    bucket vs commit
    
  5. Create a pull request to merge changes:
    bucket pr create --source flask-dependency --target main --description "Add Flask dependency to project."
    
  6. Approve and merge the pull request:
    bucket pr approve 20242311 170224
    

Additional Help

Run the following for detailed command help:

bucket --help

Contributing

Feedback and contributions are welcome! Open issues or submit pull requests on the GitHub repository.


License

This project is licensed under the Makoschin Free Software License (MFSL) Version 2.0. See the source code headers for more details.

Metadata

Release files for bkt 6.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bkt 6.0.0
File Size Uploaded Provenance Actions
bkt-6.0.0.tar.gz 8.9 kB Without provenance Details for bkt-6.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bkt 6.0.0
File Interpreter ABI Platform Actions
bkt-6.0.0-py3-none-any.whl Python 3 none any Details for bkt-6.0.0-py3-none-any.whl

Total release size: 18.4 kB

Release files / bkt-6.0.0.tar.gz

Download URL bkt-6.0.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b8aa0b9f050b9c75265c77d25d27ecf8209b600809f75a38f2f23166c5958da2
BLAKE2b-256 checksum
How to use checksums
7df7d52cadf9b49491cca7420258f23b5ba090c58f669848eaec9c0b04187c9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / bkt-6.0.0-py3-none-any.whl

Download URL bkt-6.0.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
761267d56034a280e2c7f2160fa642e6250a6419773f77e238b0ea03d39ed21a
BLAKE2b-256 checksum
How to use checksums
9d6cbca7c714a852c72e065567b48f99f6596105268b7240072a2e04d090f879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Security for bkt 6.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page