Skip to main content

Linguistic Data Hub API

Project description

CircleCI

LinHub API

LinHub is a Django-based API for managing linguistic data and annotations.

Installation

You can install LinHub as part of the Linalgo package:

pip install linalgo[hub]

Or install it directly:

pip install .

For development:

pip install -e .

Running the Server

After installation, you can run the server in several ways:

  1. Using the installed command:
linhub
  1. As a Python module:
python -m linhub
  1. Directly from source:
python linhub/management/commands/run.py

Configuration

You can configure LinHub using environment variables:

# Debug mode
export LINHUB_DEBUG=true

# Database settings
export LINHUB_DB_ENGINE=django.db.backends.postgresql_psycopg2
export LINHUB_DB_NAME=linhub
export LINHUB_DB_USER=postgres
export LINHUB_DB_PASSWORD=your_password
export LINHUB_DB_HOST=localhost
export LINHUB_DB_PORT=5432

# Site settings
export LINHUB_SITE_NAME="My LinHub"
export LINHUB_SITE_DOMAIN=my-linhub.example.com
export LINHUB_SITE_PROTOCOL=https

# Email settings
export LINHUB_NOTIFICATION_FROM_EMAIL="LinHub <noreply@example.com>"
export LINHUB_NOTIFICATION_TO_EMAILS="admin1@example.com,admin2@example.com"

Development

  1. Clone the repository:
git clone https://github.com/linalgo/linhub.git
cd linhub
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install development dependencies:
pip install -e ".[dev]"
  1. Run the development server:
linhub

API Documentation

Once the server is running, you can access:

License

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

Creating a task

TODO: Describe how to add a task

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

linhub-0.1.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

linhub-0.1.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file linhub-0.1.1.tar.gz.

File metadata

  • Download URL: linhub-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for linhub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc8d22912b91185a99052baeed47afaec58307eb2f8613f91ab03bfe7a746b06
MD5 24b361cc1edefc4e8c332cf7138ad67b
BLAKE2b-256 d581758200ea7f095a15de85f97eaf3eb0799ebee2720a37099cd6d79f849188

See more details on using hashes here.

Provenance

The following attestation bundles were made for linhub-0.1.1.tar.gz:

Publisher: pypi.yml on linalgo/linhub-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file linhub-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: linhub-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for linhub-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d44518ffdb3f52401de2fa33a909616ab0c53741b39dd2ddf310c68efdaf5098
MD5 f579416cb0edb0f7c0bd68734d739cb3
BLAKE2b-256 cec53456f198ce7df62e8ebaa6d63bbc8a02b7d6ed53dc8c93f1cc368d4695ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for linhub-0.1.1-py3-none-any.whl:

Publisher: pypi.yml on linalgo/linhub-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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