Skip to main content

Offlix

Offlix is a command-line tool designed to simplify the deployment and management of common services using Docker Compose. With Offlix, you can easily install, uninstall, and retrieve environment variables for services like MySQL, MongoDB, Kafka, Maildev, and PostgreSQL.

Table of Contents

Features

  • Easy Installation: Quickly deploy common services with predefined Docker Compose configurations.
  • Service Management: Start, stop, and uninstall services with simple commands.
  • Environment Variable Retrieval: Automatically fetch and display environment variables after service installation.
  • Custom Configurations: Support for custom Docker Compose files for advanced users.

Installation

To install Offlix, use pip:

pip install offlix

Usage

Once Offlix is installed, you can use it from the command line. Here’s how to get started:

offlix <command> <service_name>

Commands

Install a Service:

offlix install mysql

Uninstall a Service:

offlix uninstall mysql

Stop a Service:

offlix stop mysql

Example

To install MySQL and retrieve its environment variables:

offlix install mysql

After installation, to get the environment variables:

from offlix import get_service_env
env_vars = get_service_env('mysql')
print(env_vars)

Environment Variables

After installing a service with Docker, you can retrieve its environment variables (like username, password, etc.) using the following command:

from offlix import get_service_env

# Retrieve environment variables for MySQL

mysql_env = get_service_env('mysql')
print(mysql_env)

This will display relevant configuration settings required for connecting to the service.

Contributing

Contributions are welcome! If you have suggestions for improvements or want to report bugs, please open an issue or create a pull request.

Fork the repository.

Create a new branch (git checkout -b feature-branch). Make your changes and commit them (git commit -m 'Add new feature').

Push to the branch (git push origin feature-branch). Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

This project is licensed under the terms of the MIT License.

Metadata

Release files for offlix 0.1.5.2

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

Source distribution (sdist)

Source distribution for offlix 0.1.5.2
File Size Uploaded
offlix-0.1.5.2.tar.gz 8.8 kB Details

Built distribution (wheel)

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

Total release size: 18.4 kB

Release files / offlix-0.1.5.2.tar.gz

Download URL offlix-0.1.5.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8c753c9a78520aa0cbd7ad44a5dcec9499b3e809a461eb45683c474c5cb55e1e
BLAKE2b-256 checksum
How to use checksums
5839ad53d4c116a9adae27c412909fc709967bde20ec489b0c299f3b50e92ac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / offlix-0.1.5.2-py3-none-any.whl

Download URL offlix-0.1.5.2-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7ac8d21e3c6cbbd42b923af05c8d413105feb5d0d0ac4bedf6a27758fdbf95f
BLAKE2b-256 checksum
How to use checksums
43c1f8cc9f09ef462012ca5f58a9a4a4c8e17451a1dae1d5d4c4d020f5c5709e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.5.2 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.0

2 release files

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