Skip to main content

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, etc

Project description

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.

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

offlix-0.1.4.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.

offlix-0.1.4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file offlix-0.1.4.tar.gz.

File metadata

  • Download URL: offlix-0.1.4.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for offlix-0.1.4.tar.gz
Algorithm Hash digest
SHA256 939a1a2f0924b1eb00ef513b75170facded98b6d352b4f16142f517c1bca1cc2
MD5 deff8314775d2f8eb89e14b33e34f9ca
BLAKE2b-256 c057a544014771ed7fbc0311ab5d5f135f265a4bf3661d7cca46bb6a405fd6c1

See more details on using hashes here.

File details

Details for the file offlix-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: offlix-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for offlix-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 77171349727c5bcf13ffe7e097cfaffe70b27e5544e8b7045171eacff3c5c73e
MD5 4f723d9af02382a9dcf997a8a113ea39
BLAKE2b-256 7ee060ac2544a94e5f97cca74ab74c47b01fa07c0ece003c3c0dfb0398ac4b12

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