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.2.tar.gz (8.0 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for flask_github_proxy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 57a0dae64e314e4a5b7210a03710d5b46fa0e9eb2f4266fe23357142a869dd60
MD5 06a0fbe55306406d6f3c3c70610070d8
BLAKE2b-256 1c79f6ba09539e27c58175cb7d816f66866573105c438e20831fb21415ee7545

See more details on using hashes here.

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