A user interface for managing TextGrid projects, including import, export, and publication features.
Project description
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
-
Clone the repository:
git https://gitlab.gwdg.de/textplus/textplus-io/tgpublisher.git cd tgpublisher
-
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install the dependencies:
pip install .
-
Configure the application:
- Copy the example configuration file:
cp config.ini.example config.ini
- Edit
config.inito suit your environment.
- Copy the example configuration file:
-
Run the application:
tgp_app
-
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
- Navigate to the homepage.
- Click "Create New Project."
- Enter a project name and confirm.
Uploading Files
- Open a project.
- Go to the "Files" tab.
- Select files and click "Upload."
Publishing to TextGrid
- Ensure you have a valid TextGrid session ID.
- Select a project and click "Publish."
- 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!
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
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 tgpublisher-3.0.1.tar.gz.
File metadata
- Download URL: tgpublisher-3.0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ede9ae28bc4f1fbbedfb4c3c4addfa6054e70c3461c30d2f8f9c958588d3ebaf
|
|
| MD5 |
695cd529f091fddb14ed9c6a9baa22f6
|
|
| BLAKE2b-256 |
e314ccd1756e0b7a812fe942468ed92a36957ae0626745e568a8c7bce5ff0820
|
File details
Details for the file tgpublisher-3.0.1-py3-none-any.whl.
File metadata
- Download URL: tgpublisher-3.0.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76200dc7e4166f507cc53646f0e975ab3c8367f4b683eb569ec97b936a9e0dab
|
|
| MD5 |
b0fff21cc5576e70ca27db5287a690aa
|
|
| BLAKE2b-256 |
f4e07645325129f36c5badf3f25ed84e4a8fa4a0e298dc8bf13ed4b4d2565cf0
|