Skip to main content

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:

  • 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

Metadata

Release files for linhub 0.1.1

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

Source distribution (sdist)

Source distribution for linhub 0.1.1
File Size Uploaded Provenance Actions
linhub-0.1.1.tar.gz 9.8 kB With provenance Details for linhub-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for linhub 0.1.1
File Interpreter ABI Platform Actions
linhub-0.1.1-py3-none-any.whl Python 3 none any Details for linhub-0.1.1-py3-none-any.whl

Total release size: 20.2 kB

Release files / linhub-0.1.1.tar.gz

Download URL linhub-0.1.1.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fc8d22912b91185a99052baeed47afaec58307eb2f8613f91ab03bfe7a746b06
BLAKE2b-256 checksum
How to use checksums
d581758200ea7f095a15de85f97eaf3eb0799ebee2720a37099cd6d79f849188
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2025.

Transparency log

Release files / linhub-0.1.1-py3-none-any.whl

Download URL linhub-0.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d44518ffdb3f52401de2fa33a909616ab0c53741b39dd2ddf310c68efdaf5098
BLAKE2b-256 checksum
How to use checksums
cec53456f198ce7df62e8ebaa6d63bbc8a02b7d6ed53dc8c93f1cc368d4695ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2025.

Transparency log

Security for linhub 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for linhub-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 13, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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