semvec/pypi-packages huggingface dataset:
GTFS-flex-to-GOFS 0.5.2
Convert GTFS Flex to GOFS
License: MIT
Requires Python: >=3.10

# GTFS-flex-to-GOFS

[![Build Status](https://github.com/TransitApp/GTFS-flex-to-GOFS/actions/workflows/pull-request.yml/badge.svg)](https://github.com/TransitApp/GTFS-flex-to-GOFS/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)

A Python tool to convert [GTFS-Flex](https://github.com/MobilityData/gtfs-flex) (General Transit Feed Specification - Flexible services) data to the [GOFS](https://gofs.org) (General On-demand Feed Specification) format.

This tool processes on-demand and flexible transit services data from GTFS-Flex feeds and outputs standardized GOFS files for consumption by trip planning applications and mobility platforms.

## Installation

Install from PyPI:
```bash
pip install GTFS-flex-to-GOFS
```

Or install from source:
```bash
git clone https://github.com/TransitApp/GTFS-flex-to-GOFS.git
cd GTFS-flex-to-GOFS
uv sync --extra dev
```

## Usage

```bash
gtfs-flex-to-gofs --gtfs-dir <input_dir> --gofs-dir <output_dir> --url <base_url>
```

### Command Line Options

```
optional arguments:
  -h, --help           show this help message and exit
  --gtfs-dir Dir       input gtfs directory
  --gofs-dir Dir       output gofs directory
  --url URL            auto-discovery url. Base URL indicate for where each files will be uploaded (and downloadable)
  --ttl TTL            time to live of the generated gofs files in seconds (default: 86400)
  --no-warning         Silence warnings
```

## Development

### Running Tests

```bash
uv run python -m pytest .
# or for verbose output:
uv run python -m pytest tests/ -v
```

### Regenerating Test Fixtures

```bash
./createTests.sh
```

## Features

- Converts GTFS-Flex pure microtransit services to GOFS format
- Supports zone-based on-demand transit operations
- Generates all required GOFS files (zones, calendars, fares, booking rules, etc.)
- Optional split-by-route output for multi-service feeds
- Automated CI/CD with GitHub Actions

## Contributing

Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Related Projects

- [GTFS-Flex Specification](https://github.com/MobilityData/gtfs-flex)
- [GOFS Specification](https://gofs.org)
- [py-gtfs-loader](https://github.com/TransitApp/py-gtfs-loader)
cf-deploy 0.1.57
A package to automate CloudFormation deployments
License: MIT
Requires Python: <4.0,>=3.9

# cf-deploy
cf-deploy is a package to automate CloudFormation deployments. It simplifies the deployment process by allowing you to use YAML configuration files to define your stack parameters and resources.

Features:
- Merge multiple configuration files to create a single CloudFormation stack
- 

## Installation
To install cf-deploy, run the following command:

```bash
pip install cf-deploy
```
## Usage
To use cf-deploy, create a YAML configuration file with your CloudFormation stack settings. You can use a base configuration file to define common settings and override or extend them with environment-specific configuration files.

Here's a sample base configuration file, base.yaml:

```yaml
region: us-west-2
template: s3://my-bucket/my-template.yaml
deployment_stages:
  - dev
  - prod
```
And a sample environment-specific configuration file, dev.yaml:

```yaml
name: my-stack-dev
prefix: dev-
parameters:
  Stage: dev
  InstanceType: t2.micro
```

## Deploying a CloudFormation stack
To deploy a CloudFormation stack using cf-deploy, run the following command:

```bash
cf-deploy -b base.yaml -c dev.yaml
```

This command will merge the base configuration file (base.yaml) with the environment-specific configuration file (dev.yaml) and deploy the resulting CloudFormation stack.