Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgpublisher-3.1.0rc4.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

tgpublisher-3.1.0rc4-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file tgpublisher-3.1.0rc4.tar.gz.

File metadata

  • Download URL: tgpublisher-3.1.0rc4.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tgpublisher-3.1.0rc4.tar.gz
Algorithm Hash digest
SHA256 294b97d8880795bd198129e44d90dc06ebcde480b511bd6a520ebb8cd81c49fc
MD5 87059e914d6de1b8c417acfd31802dfd
BLAKE2b-256 39c1c205580c84a4f60e90f2968cb5b7e483a41d16fdc5b8134362ba27dcd22e

See more details on using hashes here.

File details

Details for the file tgpublisher-3.1.0rc4-py3-none-any.whl.

File metadata

  • Download URL: tgpublisher-3.1.0rc4-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for tgpublisher-3.1.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 833a5f994a221d1406349648d03e182ac657aee59f16a839457d0903e42e5c39
MD5 65353a75f96bc75c77d2446f94140ff8
BLAKE2b-256 d16d691abea7fe8ca09ea4e09753a4035782d6af34fe9569bb7e5559eddad939

See more details on using hashes here.

Release history Release notifications | RSS feed

3.1.0

2 files

This release

3.1.0rc4 This release

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page