Skip to main content

A simple package to help convert CSV file entries to GITHub issues via API v3 (Private and Public repositories)

Project description

CSV To Git Hub Issue Creator

A simple package to help convert CSV file entries to GITHub issues via API v3 (Private and Public repositories). This package helps developers to maintain private repositories who want to keep their code hidden but issues section open to the public.

A platform to collect results can be set up for example via google forms to collect responses and convert these responses to issues which include Assignee, Labels, Title, Description and Date raised.

How to use:

from csvtogitissue import csvtogitissue
FILE_ID = 'file ID from google drive'
FILE_NAME = 'Name after downloaded'
file1 = csvtogitissue.download_responses_gform(FILE_ID,FILE_NAME)
> Returns 1 for success 0 for fail

FILE_LINK = 'File link from the web'
FILE_NAME = 'Name after downloaded'
file2 = csvtogitissue.download_responses_CSV(FILE_LINK,FILE_NAME)
> Returns 1 for success 0 for fail


FILE_NAME = 'Name after downloaded'
TOKEN = 'GIT hub API token'
REPO_NAME = 'name of repo on git hub (private or public)'
REPO_OWNER = 'Repo owner used as as assignee'
(Column numbers)
TITLE = 'Column number of title'
DESCRIPTION = 'Column number of title'
LABELS = 'Column number of label'
CREATED_DT = 'Column number of label'
EMAIL = 'Column number of email if column does not exist set it to str(NULL)'
file3 = csvtogitissue.create_issues(FILE_NAME,TOKEN,REPO_NAME,REPO_OWNER,TITLE,DESCRIPTION,LABELS,EMAIL,CREATED_DT)
> Returns 1 for success 0 for fail

Alternatively you may want to use a config.ini file:

config.ini

[DEFAULT]
TOKEN = xxxxxxxxxxxxxxxxxxxx
REPO_OWNER = Your name here
REPO_NAME = Repo name here
FILE_ID = File ID here
FILE_NAME = File name here
CREATED_DT = 0
DESCRIPTION = 3
TITLE = 2
LABELS = 1
EMAIL = 4

In your python code

TOKEN = config['DEFAULT']['TOKEN']
REPO_OWNER = config['DEFAULT']['REPO_OWNER']
REPO_NAME = config['DEFAULT']['REPO_NAME']
FILE_ID = config['DEFAULT']['FILE_ID']
FILE_NAME = config['DEFAULT']['FILE_NAME']
DESCRIPTION = config['DEFAULT']['DESCRIPTION']
TITLE = config['DEFAULT']['TITLE']
LABELS = config['DEFAULT']['LABELS']
EMAIL = config['DEFAULT']['EMAIL']
CREATED_DT = config['DEFAULT']['CREATED_DT']

Reminder:

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

csvtogitissue-1.0.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

csvtogitissue-1.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file csvtogitissue-1.0.4.tar.gz.

File metadata

  • Download URL: csvtogitissue-1.0.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.3

File hashes

Hashes for csvtogitissue-1.0.4.tar.gz
Algorithm Hash digest
SHA256 4a03352c6887b9f5ae80e0920c0f59e4a119ebc41d7a6d8d21c029a3d1e114d1
MD5 4ac31b467601ccec6fd43dcc716ba3aa
BLAKE2b-256 8b1559533c213f85f00cac97034d014a8a6ba773cc6473c357fac4b4152fc02a

See more details on using hashes here.

File details

Details for the file csvtogitissue-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: csvtogitissue-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.5.3

File hashes

Hashes for csvtogitissue-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be66a2130560cfe842878c5fc725676e0ebd06874b85111e344453fdf11d8fef
MD5 9677998d865526c92276d919ca38eac4
BLAKE2b-256 471020e40964be3c6305c524a355bc38ce1acd4fbc609b8ac39b1b8e3dc0d2fe

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