Skip to main content

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.9 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

tesseract_client-0.0.7.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

tesseract_client-0.0.7-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file tesseract_client-0.0.7.tar.gz.

File metadata

  • Download URL: tesseract_client-0.0.7.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for tesseract_client-0.0.7.tar.gz
Algorithm Hash digest
SHA256 0c6c0424197f184e65ca5ec1621c4cbbd2a6ea43cc0deefa02bff65b505dd2d1
MD5 b6d05e49b10656320b9a4db9aa6ce0ac
BLAKE2b-256 d4ee4d10fcf06d642c3961b77679d7499422596464fe683f296fbd81ece81ffb

See more details on using hashes here.

File details

Details for the file tesseract_client-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for tesseract_client-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7e24f1ce34c6a951a5150b6407ed797b1ebb65c6d9861803dfaaa14568975d
MD5 ad21cef398befd428acdc4fe700a9ac1
BLAKE2b-256 a7354bab011a79256d097044807450609f0baf3e2443aef2e3da3a951ddc6e09

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page