Skip to main content

TGPublisher

tgpublisher is a user interface (UI) designed to visually prepare TextGrid imports. It integrates with the tg_model project and provides tools for managing projects, uploading files, and publishing to TextGrid.

Features

  • Project Management: Create, edit, and delete projects.
  • TextGrid Integration: Publish projects to a TextGrid test instance.
  • XPath Support: Validate and edit XPath expressions.
  • File Uploads: Upload and manage files within a project.
  • Nextcloud Integration: Download files from Nextcloud.
  • Git Integration: Clone Git repositories directly into a project.
  • Configurable Settings: Customize the application via config.ini.

Requirements

  • Python 3.8 or higher
  • Dependencies listed in setup.py

Installation

  1. Clone the repository:

    git https://gitlab.gwdg.de/textplus/textplus-io/tgpublisher.git
    cd tgpublisher
    
  2. Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate
    
  3. Install the dependencies:

    pip install .
    
  4. Configure the application:

    • Copy the example configuration file:
      cp config.ini.example config.ini
      
    • Edit config.ini to suit your environment.
  5. Run the application:

    tgp_app
    
  6. Open the application in your browser at http://localhost:5000.

Usage

Configuring the Application

Modify the config.ini file to set up:

  • TextGrid API credentials
  • File storage paths
  • Other application-specific settings

Creating Projects

  1. Navigate to the homepage.
  2. Click "Create New Project."
  3. Enter a project name and confirm.

Uploading Files

  1. Open a project.
  2. Go to the "Files" tab.
  3. Select files and click "Upload."

Publishing to TextGrid

  1. Ensure you have a valid TextGrid session ID.
  2. Select a project and click "Publish."
  3. Follow the instructions to upload the project to the TextGrid test instance.

Project Structure

The project is organized into two main subpackages:

tgp_ui

  • Contains the Flask-based user interface.
  • Includes HTML templates and static assets.

tgp_backend

  • Implements the backend logic for project management, file handling, and TextGrid API integration.

Configuration

  • config.ini: Central configuration file for the application.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Authors

  • Ralf Klammer - TU Dresden
  • Moritz Wilhelm - TU Dresden

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitLab.


Enjoy working with tgpublisher!

Metadata

Release files for tgpublisher 3.2.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 tgpublisher 3.2.1
File Size Uploaded Provenance Actions
tgpublisher-3.2.1.tar.gz 1.2 MB Without provenance Details for tgpublisher-3.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 2.4 MB

Release files / tgpublisher-3.2.1.tar.gz

Download URL tgpublisher-3.2.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
bf5bc238a78e34adce263d28d4d8c7c7c35b1548891a73e62ccc3d255827b6fc
BLAKE2b-256 checksum
How to use checksums
32039b98e62863dfbbe8aefef690f9495e29610c5b3c38c0b0189e5a53f400b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / tgpublisher-3.2.1-py3-none-any.whl

Download URL tgpublisher-3.2.1-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
eaf8c621008eebcb7240e2d744376780a5cf68c5735d83aadf790fa75a73d06f
BLAKE2b-256 checksum
How to use checksums
7998a06003332ab9a3b7333cb96f19115ce64a84eb0439fc6707ec0e8e8b5dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for tgpublisher 3.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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