Skip to main content

Simple local application development server

Project description

railyard

Local application development server

Features

  • Basic compatibility with Google App Engine app.yaml files

  • Basic compatibility with Google App Engine dispatch.yaml files

  • Support for static files

Use

To run an application defined in a app.yaml file:

$ railyard app.yaml

To run an application which uses a dispatch.yaml file:

$ railyard dispatch.yaml

Railyard will first search the folder it is run from for the service definition files, failing that, it will search folders matching the service names. For example, take the following dispatch.yaml:

dispatch:
  - url: "*/app1/*"
    service: app1

  - url: "*/app2/*"
    service: app2

Railyard will use files in the following order:

  • ./app1.yaml

  • ./app1/app1.yaml

  • ./app2.yaml

  • ./app2/app2.yaml

Options

-e, --entrypoint = ENTRYPOINT

Overrides the entrypoint defined in the input file(s) with the given ENTRYPOINT.

When input is a dispatch.yaml file, an ENTRYPOINT must be provided for each service defined in the dispatch.yaml file. The ENTRYPOINT overrides must be specified in the same order as the code:service definitions in dispatch.yaml file.

Development

Setup

It is recommended to develop using a pipenv.

A development environment can be set up automatically:

$ pipenv install --dev

You can work directly inside the development environment:

$ pipenv shell

From inside the development environment, you can install the pre-commit hooks using pre-commit:

$ pre-commit install

To run the pre-commit hooks manually:

$ pre-commit run --all-files

Tests

To run the unit tests:

$ python -m unittest

The pre-commit tests are run using coverage. To see where the coverage tests are failing:

$ coverage report -m

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

railyard-0.1.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

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

railyard-0.1.0-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file railyard-0.1.0.tar.gz.

File metadata

  • Download URL: railyard-0.1.0.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for railyard-0.1.0.tar.gz
Algorithm Hash digest
SHA256 47d1985d752d744486fad5c874022e5d7c3c2e26f63415eaf3e9dce36b83d3e0
MD5 006f546d2e37778e9c71378f1a154a07
BLAKE2b-256 254974e8cc33c798ab11d37662a4cb73211a73c85a010f674a7156cc65e535f1

See more details on using hashes here.

File details

Details for the file railyard-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: railyard-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.2 pkginfo/1.4.2 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for railyard-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 691e496ab2f44b56172157ad01b96af32489fd9171ef8dbdc77de748858fd73e
MD5 d9ce37419e4374849f43b42faa846538
BLAKE2b-256 7503df3264dfc44f31921a7d60c254e6d48fc3421ac2c404b841f3d2e72d5465

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