Skip to main content

APPN Phenomate Project Manager

Project description

APPN Phenomate Project Manager

A Python package for managing project templates, metadata, and file organization using flexible YAML schemas. Designed for research and data projects that require consistent file naming, metadata, and directory structures.

Install

pip install appm 

Features

  • Template-driven project structure: Define project layouts, file naming conventions, and metadata in YAML.
  • Automatic project initialization: Create new projects with standardized folders and metadata files.
  • File placement and matching: Automatically determine where files belong based on their names and template rules.
  • Extensible and validated: Uses Pydantic for schema validation and ruamel.yaml for YAML parsing. Installation Or for development:

Usage

  1. Define a Template

Create a YAML template describing your project's structure, naming conventions, and file formats. See examples/template.yaml for the default template.

  1. Initialize a Project
from appm import ProjectManager

pm = ProjectManager.from_template(
    root="projects",
    year=2024,
    summary="Wheat yield trial",
    internal=True,
    researcherName="Jane Doe",
    organisationName="Plant Research Org",
    template="examples/template.yaml"
)
pm.init_project()
  1. Add Files

Files are automatically placed in the correct directory based on the template.

pm.copy_file("data/20240601-120000_SiteA_SensorX_Trial1_T0-raw.csv")

Project Structure

  • appm – Core package (template parsing, project management, utilities)
  • examples – Example YAML templates
  • schema – JSON schema for template validation
  • tests – Unit tests and fixtures

Development

  • Python 3.13+
  • Pydantic
  • ruamel.yaml
  • pytest for testing

Run tests:

pytest

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

appm-0.0.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

appm-0.0.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file appm-0.0.3.tar.gz.

File metadata

  • Download URL: appm-0.0.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for appm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a0b2d50a65b1f70709afd05e80311258c5862525d8d2264449fc024ac038df93
MD5 835e583dafcbf8e79a4093227b38506a
BLAKE2b-256 8ea05d7dc6cc631e164abd81bb52f1af63ece1c0388ba7c3c432e977c9f3b02b

See more details on using hashes here.

File details

Details for the file appm-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: appm-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for appm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d15c9aba7d4ba859b0089b67564af10dd05feb36b8faee9e92af8f02e4b63c92
MD5 2c8d25b0a4f014b6d52367c68c675295
BLAKE2b-256 9c10e9e5c069605738ddf2f0677c5f14fd39f9c188d758244a0705d0cb56fa9b

See more details on using hashes here.

Supported by

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