Skip to main content

Plugin to build services to push data from a website to github with PullRequests confirmation

Project description

.. image:: https://coveralls.io/repos/PonteIneptique/flask-github-proxy/badge.svg?service=github
:alt: Coverage Status
:target: https://coveralls.io/github/PonteIneptique/flask-github-proxy
.. image:: https://travis-ci.org/PonteIneptique/flask-github-proxy.svg
:alt: Build Status
:target: https://travis-ci.org/PonteIneptique/flask-github-proxy
.. image:: https://badge.fury.io/py/flask_github_proxy.svg
:alt: PyPI version
:target: http://badge.fury.io/py/flask_github_proxy
.. image:: https://readthedocs.org/projects/docs/badge/?version=latest
:alt: Documentation
:target: https://flask-github-proxy.readthedocs.io/en/latest/

What ?
######

Flask Github proxy is a flask extension to provide saving resources to GitHub. To use this service, you will need a github token (Generate token : https://github.com/settings/tokens )

Installation
############

To install it, simply do : :code:`pip3 install flask_github_proxy` or

.. code-block:: bash

git clone https://github.com/ponteineptique/flask-github-proxy.git
cd flask-github-proxy
python3 setup.py install

Example
#######

.. code-block:: python
:linenos:

from flask import Flask
from flask_github_proxy import GithubProxy
from flask_github_proxy.models import Author

app = Flask("name")
proxy = GithubProxy(
"/proxy",
"ponteineptique/dummy1",
"alpheios-project/dummy1",
secret="something",
token="Github Token",
app=app,
origin_branch="master",
default_author=Author(
"Github Proxy",
"anonymous@github.com"
)
)
app.run()

Funding and original development
################################

This python software has originally been developed in the context of the Syriaca_ Project, under the funding of NEH.

.. image:: ./_static/images/neh_logo.png
:alt: NEH
:target: http://www.neh.gov/

.. _Syriaca: http://www.syriaca.org/

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

flask_github_proxy-0.0.1.tar.gz (7.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for flask_github_proxy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bea765c02b38e8a3662b7521f89605f78981e16c166e2ef3b24ee884dd2a6b07
MD5 639ad90ed97e18c7118136cab8bedc55
BLAKE2b-256 7fded6eaf6ad12649d2352207dec36dc5a3326f3a15f2c1259324463e76f8e45

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