Sbayt Anubis CLI
Project description
𓁢 Anubis CLI
Automated Network & User Base Installation Service
📖 Read this in other languages:
Description
This tool defines and organizes a set of automated tasks to configure and manage development/production environments.
It uses invoke to structure tasks and rich to enhance the terminal experience.
Main Features
- Local installation and management of essential CLI tools (AWS CLI, Bitwarden CLI).
- Configuration of private repositories (CodeArtifact) for
pipanduv. - Docker service automation (
create network,start,stop,clean,build). - Verification of security configurations and local environment (Bitwarden, AWS ECR, etc.).
Installation & Basic Usage
Requirements
- Python >= 3.10
- uv >= 0.7.0
- A deployment file (local or global, default:
deployment.yml) to define profiles and credentials.
Global Installation
To install the tool globally, you can use uv (recommended) or pipx.
# With uv (recommended)
uv tool install anubis-cli
# With pipx
pipx install anubis-cli
Basic Usage
- View available tasks:
anubis help
- Check your local environment:
anubis check.environment
- Start Docker services with specific profiles:
anubis docker.up --profiles=infra,api --env=prod
- Configure pip for CodeArtifact:
anubis aws.configure-pip
Enable autocompletion for anubis:
# For bash
anubis --print-completion-script bash > ~/.anubis-completion.bash
echo "source ~/.anubis-completion.bash" >> ~/.bashrc
source ~/.bashrc
# For zsh
anubis --print-completion-script zsh > ~/.anubis-completion.zsh
echo "source ~/.anubis-completion.zsh" >> ~/.zshrc
source ~/.zshrc
For more details or additional examples, check each task’s documentation using
anubis --list or review the individual docstrings.
Development Environment Setup
Requirements
Setup
- Create the virtual environment:
uv sync
- Verify the virtual environment was created correctly:
uv pip check
uv tree
-
Use the virtual environment:
With
uvas package manager, you can use the environment in two ways:- (Recommended) Run commands inside the virtual environment with
uv run <command>:
- (Recommended) Run commands inside the virtual environment with
uv run anubis
uv run pytest -m unit
- Activate the virtual environment:
source .venv/bin/activate
Dependency Management
Using uv as package manager, you can easily handle project dependencies.
When a dependency is installed, it is stored in uv.lock to reproduce the environment elsewhere, and added to pyproject.toml.
- Install or update a dependency:
uv add <package>
- Add development dependencies:
uv add --dev <package>
- Remove a dependency:
uv remove <package>
uv remove --dev <package>
- Export dependencies to
requirements.txt:
uv export --no-hashes -o requirements.txt
Creating a New Package
- Build the package:
uv build
-
A
distfolder will be created with the package and its wheel. -
Install the package in another project’s virtual environment:
uv tool install --from dist/anubis_cli-{version}-py3-none-any.whl anubis-cli
Contributing
For a complete guide on how to contribute to the project, please review the Contribution Guide.
Reporting Issues
If you believe you've found a defect in this project or its documentation, open an issue in Jira so we can address it.
If you're unsure whether it's a bug, feel free to discuss it in our forums or internal chat—someone will be happy to help.
Code of Conduct
See the Code of Conduct.
License
See the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anubis_cli-0.0.18.tar.gz.
File metadata
- Download URL: anubis_cli-0.0.18.tar.gz
- Upload date:
- Size: 27.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17a31ac2797c92ece8bfbd39d517ccd22888013da45d13b2ec25967a5ae0560d
|
|
| MD5 |
8617ad134f22be54d9270cd5bc9d80d9
|
|
| BLAKE2b-256 |
2e0f67c8c0880c3b199696f425cb023feebea8900e638348944b7827c04dc38c
|
File details
Details for the file anubis_cli-0.0.18-py3-none-any.whl.
File metadata
- Download URL: anubis_cli-0.0.18-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6c6741c8457e6afc404014e0c9d3ea155624f33d47f88d7ce528d7a69f84770
|
|
| MD5 |
48185accbf5d7c32019bfc0cb3055046
|
|
| BLAKE2b-256 |
1c18c49eb842fdf55cc731a559fbcdcf5677122246c860c99450ccfd585e4e84
|