Skip to main content

generate .travis.yml

Project description


$ [sudo] pip install travis-yml


  • travis_yml.TravisYML subclass properties/attrs as .travis.yml keys

How it works

based on .travis.yml known keys



>>> import travis_yml

>>> travis = travis_yml.TravisYML(".travis.yml")
>>> travis.text
language: python

attr access

>>> travis.language = "php"
>>> travis.language


>>> travis.update(os=["linux"],language="python")

load(path), save(path)

>>> travis.load(".travis.yml")


>>> class Custom(travis_yml.TravisYML):
    language = "python"
    python = [2.7,3.6,3.7]
>>> Custom().text
language: python
- 2.7
- 3.6
- 3.7

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
travis_yml-0.0.0-py2.py3-none-any.whl (408.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Aug 20, 2018
travis-yml-0.0.0.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Aug 20, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page