Client for Tesseract API
Project description
Tesseract-client documentation
Introduction
Tesseract-client is a client for the Tesseract file-hosting service. It is written in Python 3 and uses the Tesseract API to communicate with the server.
Installation
tesseract-client
requires Python 3.10 or higher.
Tesseract-client is available on PyPI and can be installed with pip:
pip install tesseract-client
If you get an error during installation, make sure that you have the latest version of pip installed. You can upgrade pip with
pip install --upgrade pip
.
Verify that the installation was successful by running tesseract --version
.
$ tesseract --version
tesseract 0.0.5
Usage
usage: main.py [-h] [-V] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] {signup,login,logout,run,config,pull} ...
Login
Before you can use the client, you must create an account on the Tesseract server. You can do this with the signup
command:
tesseract signup [--username <username>] [--password <password>]
If you do not specify a username and password, you will be prompted for them.
After you have created an account, you can login with the login
command:
tesseract login [--username <username>] [--password <password>]
It uses the keyring library to store your credentials in the system keyring. You will only need to login once, as the credentials will be stored for future use.
Note: If you are using a Linux distribution that does not have the keyring library installed by default, you will need to install it manually. For example, on Ubuntu, you can install it with
sudo apt install gnome-keyring
.
If you wish to logout, you can use the tesseract logout
command. It will also delete all the files associated with your account from the local directory.
Configuring the client
By default, the client will create a directory called tesseract
in your home directory, and will monitor this directory for changes. The local database file will be stored in ~/.local/share/tesseract/tesseract.db
.
You can change these defaults with the config
command:
tesseract config [--path PATH] [--db DB] [--api_url API_URL]
By default, the client will use the default Tesseract API URL. If you are running your own instance of the Tesseract server, you can configure the client to use your own API URL.
Pulling files
If you have used the Tesseract on another machine and want to pull the files from the server, or you just want to pull the latest version of the files, you can use the pull
command:
tesseract pull
It will compare the files in the local directory with the files on the server, and download only parts of files that were modified since the last pull. If a file was deleted on the server, it will be deleted locally as well.
Running the monitoring
To run the monitoring, you should use the tesseract run
command. This will start the monitoring process, which will automatically upload any files that are added to or modified in the monitored directory. It will also upload to the server any files that were modified while the monitoring was not running and try to pull any files that were modified on the server.
tesseract run
Uninstalling
If you wish to uninstall the client, you should consider running tesseract logout
first. This will delete all the files associated with your account from the local directory.
After that, you can uninstall the client with pip:
pip uninstall tesseract-client
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
Built Distribution
File details
Details for the file tesseract_client-0.0.8.tar.gz
.
File metadata
- Download URL: tesseract_client-0.0.8.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34937a5331641554b9d877164ea6fb5732c358b0d645672a9c14d256e28ebe12 |
|
MD5 | 36b4ff5f0daa395266d1cc841898154d |
|
BLAKE2b-256 | fe9aeeff5660a008818ddbc82d1e8f67ea83235f9380fda20ce3040376d482f4 |
File details
Details for the file tesseract_client-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: tesseract_client-0.0.8-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 724ff6e989fb124ed511495f7482e37503693373612f10a3c24b664cec4fd71e |
|
MD5 | bc1c63238793758fadfcc1d7deb64752 |
|
BLAKE2b-256 | 5c80cd52f937b21e34a463b72fe23e5ded765567466a2558706b80b7b6f87427 |