Skip to main content

A command-line tool for controlling the Tez project

Project description

Tez Control

Tez Control is a command-line tool that allows users to interact with and control remote servers, generate configuration files, and execute custom commands. It is designed to make server management and configuration setup simple and efficient.

Features

  • Connect to Real Server: Enter and interact with a remote server directly from your terminal.
  • Generate Configuration Files: Automatically generate configuration files like .service and nginx.conf for your project.
  • Run Custom Commands On Server: Execute commands on the server as per your project needs.
  • Run Custom Commands On Local: Execute commands on the current local path.

Installation

You can install tez-control via pip:

pip install tez-control

Usage

Entering the Real Server

Once you have tez-control installed, you can connect to a remote server with the following command:

tez sv

This will prompt you to enter your server's host, user, and password (configured in your settings). Once connected, you will have an interactive terminal where you can run shell commands on the server.

You can navigate directories, run commands, and even cancel a command with Ctrl+C. Type exit to disconnect from the server.

Generate Configuration Files

You can generate required configuration files (like .service and nginx.conf) for your project by running:

tez ex

Configuration File (.tez)

tez-control uses a .tez configuration file to store connection details and project settings. The default location for this file is your home directory (~/.tez). Below is an example of what the file should look like:

[server]
SERVER_HOST=1.1.1.1
SERVER_USER=root
SERVER_PASSWORD=1234
SERVER_PORT=22

[project]
PROJECT_PATH=/path/project

[server-commands]
restart=git pull && sudo systemctl restart my_project
pull=git pull

[local-commands]
push=git add . && git commit -m 'Update Project' && git push

Make sure to adjust the values for your specific server and project configuration.

Contributing

If you'd like to contribute to tez-control, feel free to fork the repository and create pull requests. We welcome improvements, bug fixes, and new features.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Key Sections Added:

  • Entering the Real Server: Describes how users can use the tez sv command to connect to a remote server interactively.
  • .tez Configuration File: Generate example with tez ex

This README.md should help guide users in installing, configuring, and using tez-control effectively.

Let me know if you'd like further adjustments!

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

tez_control-1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distributions

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

tez_control-1.0.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

tez_control-1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file tez_control-1.tar.gz.

File metadata

  • Download URL: tez_control-1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for tez_control-1.tar.gz
Algorithm Hash digest
SHA256 80cd60fece12a4b543aac8d4303ead9e75bfd96d118eeb71cb394e26ec612895
MD5 507c15f8ab4a9ef4480911d326fee4bc
BLAKE2b-256 8db8db4090f46e2bc59c36655dfc76438ebaf2ef337f300c3a0ad116e0f04dc4

See more details on using hashes here.

File details

Details for the file tez_control-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tez_control-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for tez_control-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 626e5e7844bcfc23c21f6c60fb4e2a15c3d991e21869b64ba4c333992a4ef009
MD5 84c91db23e900126a676ccf51ecc03d3
BLAKE2b-256 8529109dcf14a59eb2dabcd096c3fe3f17a052226bd0fbe62f255d0ae687679c

See more details on using hashes here.

File details

Details for the file tez_control-1-py3-none-any.whl.

File metadata

  • Download URL: tez_control-1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for tez_control-1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b9c16135ce4713af3cd3d9cfd1266dbf87905be937de759de3c3fcdde8c6457
MD5 31b9e2de3d5e4d2d10a39e880ef50f96
BLAKE2b-256 6755c585d41d39b3f95630f8174cb441155f36e7c6d67c19a8fc7db9c63168ba

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