Skip to main content

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

Metadata

Release files for tesseract-client 0.0.8

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

Source distribution (sdist)

Source distribution for tesseract-client 0.0.8
File Size Uploaded
tesseract_client-0.0.8.tar.gz 19.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tesseract-client 0.0.8
File Interpreter ABI Platform
tesseract_client-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 37.1 kB

Release files / tesseract_client-0.0.8.tar.gz

Download URL tesseract_client-0.0.8.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
34937a5331641554b9d877164ea6fb5732c358b0d645672a9c14d256e28ebe12
BLAKE2b-256 checksum
How to use checksums
fe9aeeff5660a008818ddbc82d1e8f67ea83235f9380fda20ce3040376d482f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / tesseract_client-0.0.8-py3-none-any.whl

Download URL tesseract_client-0.0.8-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
724ff6e989fb124ed511495f7482e37503693373612f10a3c24b664cec4fd71e
BLAKE2b-256 checksum
How to use checksums
5c80cd52f937b21e34a463b72fe23e5ded765567466a2558706b80b7b6f87427
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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