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
-
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!
Metadata
Release files for tgpublisher 3.2.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tgpublisher-3.2.0rc1.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tgpublisher-3.2.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / tgpublisher-3.2.0rc1.tar.gz
| Download URL | tgpublisher-3.2.0rc1.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6334a9dfe36b3d548fe821cec1ff1797ebfa758830f18c83daa357106608edfd
|
|
BLAKE2b-256 checksum How to use checksums |
e8ad2ab2b1b31114a3275db4e6c01d5ec9ec1e13fba9207ad06cfe4cd61afde4
|
| 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.0rc1-py3-none-any.whl
| Download URL | tgpublisher-3.2.0rc1-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0220a5a89b4ac8585153fec8d8b5d66a2397fda6f1d665925c38ffbc13def8b1
|
|
BLAKE2b-256 checksum How to use checksums |
1815195077b37723c28481ed8618f46b0cc3aa742d59e189c964189b5bb49939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|