Linguistic Data Hub API
Project description
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:
- Using the installed command:
linhub
- As a Python module:
python -m linhub
- 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
- Clone the repository:
git clone https://github.com/linalgo/linhub.git
cd linhub
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install development dependencies:
pip install -e ".[dev]"
- Run the development server:
linhub
API Documentation
Once the server is running, you can access:
- Swagger UI: http://localhost:8000/v1/doc/
- ReDoc: http://localhost:8000/v1/redoc/
- OpenAPI Schema: http://localhost:8000/v1/schema/
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc8d22912b91185a99052baeed47afaec58307eb2f8613f91ab03bfe7a746b06
|
|
| MD5 |
24b361cc1edefc4e8c332cf7138ad67b
|
|
| BLAKE2b-256 |
d581758200ea7f095a15de85f97eaf3eb0799ebee2720a37099cd6d79f849188
|
Provenance
The following attestation bundles were made for linhub-0.1.1.tar.gz:
Publisher:
pypi.yml on linalgo/linhub-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linhub-0.1.1.tar.gz -
Subject digest:
fc8d22912b91185a99052baeed47afaec58307eb2f8613f91ab03bfe7a746b06 - Sigstore transparency entry: 211929564
- Sigstore integration time:
-
Permalink:
linalgo/linhub-api@9b9e913fad3f8d6597b15e52aaf1521191b84a43 -
Branch / Tag:
refs/heads/prod - Owner: https://github.com/linalgo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9b9e913fad3f8d6597b15e52aaf1521191b84a43 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d44518ffdb3f52401de2fa33a909616ab0c53741b39dd2ddf310c68efdaf5098
|
|
| MD5 |
f579416cb0edb0f7c0bd68734d739cb3
|
|
| BLAKE2b-256 |
cec53456f198ce7df62e8ebaa6d63bbc8a02b7d6ed53dc8c93f1cc368d4695ce
|
Provenance
The following attestation bundles were made for linhub-0.1.1-py3-none-any.whl:
Publisher:
pypi.yml on linalgo/linhub-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
linhub-0.1.1-py3-none-any.whl -
Subject digest:
d44518ffdb3f52401de2fa33a909616ab0c53741b39dd2ddf310c68efdaf5098 - Sigstore transparency entry: 211929573
- Sigstore integration time:
-
Permalink:
linalgo/linhub-api@9b9e913fad3f8d6597b15e52aaf1521191b84a43 -
Branch / Tag:
refs/heads/prod - Owner: https://github.com/linalgo
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@9b9e913fad3f8d6597b15e52aaf1521191b84a43 -
Trigger Event:
push
-
Statement type: