alibaba/footmark

Name: footmark

Owner: Alibaba

Description: null

Created: 2018-02-08 05:52:28.0

Updated: 2018-03-22 07:59:59.0

Pushed: 2018-05-09 02:20:37.0

Homepage: null

Size: 95

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

footmark

python sdk for aliyun, and give ansible-module used first

Install footmark

footmark can be intalled conveniently via pip:

$ sudo pip install footmark

and it can be upgrade via following command:

$ sudo pip install footmark --upgrade
Config footmark

By default we use two locations for the footmark configurations, which '/etc/footmark/' and '~/.footmark'. And location '~/.footmark' works on Windows and Unix. All of footmark's configurations files exist in the locations, and you can configure your footmark by modifying them. At present, footmark only support custom logging. Footmark logs exist in the '/var/log/footmark', and it only retains the logs last 7 days.

Unittest footmark

If you want to test footmark use unittest, you should use following command to install dependence packages:

$ sudo pip install mock nose nose_htmloutput importlib

Warning: If you run it in the Mac, it will failed and raise an error 'OSError: [Errno 1] Operation not permitted:'. The best way to solve it is run it in the virtualenv.

Package footmark

When you modify footmark, you need to package and distribute it. First, you need to edit footmark/init.py and set a new version to 'version '. Second execute command as follows:

# build footmark package
$ python setup.py sdist

# make sure your enviroment has installed twine, if not, execute command:
$ sudo pip install twine

# distribute new footmark
# upload your project
$ twine upload dist/<your-footmark-package>

Finally, upgrade footmark and check it.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.