Skip to main content

a utility library to help provide api route generation form function signature for web frameworks.

Project description

Surgen is a tool and library to help perform automated upgrades to codebases. It’s goals are:

  • provide a simple CLI to facilitate upgrading codebases

  • provide libraries to allow easy authoring of code migration scripts.

Installation

pip install surgen

Usage

Surgen is available as a command line tool, providing the directory containing surgen scripts, and the directory to apply them to:

surgen ./my_upgrade_scripts ./my_target_directory

Both arguments are optional, and default to the ./surgen-scripts directory and the current working directory, respectively.

Surgen Script

A surgen script should contain a class that:

  • extends surgen.Procedure

  • overrides operate(self)

  • does NOT override __init__

Examples of surgen scripts can be found in the examples/ directory.

TODO

  • backup / restore

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

surgen-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

surgen-0.0.1-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file surgen-0.0.1.tar.gz.

File metadata

  • Download URL: surgen-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for surgen-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d518aaab4d08274cee7a2d055a1895a4060da5291da792b85dfab1e7f297ab63
MD5 8925ecf894ab06db0ec9e427d4eccdc1
BLAKE2b-256 807b5d856349692ea2cd47aae4020e61a2345dd3c69efbca999dd0b1cb1a7ed2

See more details on using hashes here.

Provenance

File details

Details for the file surgen-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for surgen-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 09ba54f3836e20f88559d203da219d6edd0322bc2d6261938c034b1a4906c90a
MD5 114ed19d16b19fa60721b56fc995e2a7
BLAKE2b-256 f8a8f2d783d6a1616dffa74fb5c0067fdc31975c6409ba82ed754f531984db83

See more details on using hashes here.

Provenance

Supported by

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