README.rst
FSGetter is a python package used to pull FreshService knowledgebase articles to a local machine.
Documentation home: https://kbgetter.readthedocs.io/en/latest/
Installation Requirements
Python 3.7+
pip 21.3.1+
pip Installation
pip install kbgetter
Examples
Create database, articles and local articles.
from kbgetter import FSGetter
#Please get your API key by following the instructions at https://api.freshservice.com/#authentication
#username must be the API key. username/password is no longer supported
api_key = 'your_api_key'
#password will always be 'X' for API key usernames
password = 'X'
#kb_url is the base instance of FreshService for an organization
kb_url = 'https://mycompany.freshservice.com'
#kb_name, in this example, is the directory where this script and KBgetter.py is stored and is a relative path
kb_name = './'
#current_categories is passed to make_articles to limit the articles created by category
#the categories' IDs (integers) listed here are the categories that have D365 and associated systems documentation
current_categories = [523212, 523213, 523214]
kb = FSGetter(api_key,password,kb_url,'./')
builder = kb.build_kb()
#passing current_categories to make_articles limits the articles created by category.
#if nothing is passed to make_articles all articles in solutions will be created.
make_articles = kb.make_articles(current_categories)
print('%s articles created'%make_articles)
make_local = kb.make_local_articles()
print('%s local articles created'%make_local)
View all categories from the database.
from tinydb import TinyDB
db = TinyDB('db.json')
categories = db.table('categories')
for category in categories:
input("ID = %s, Name = %s, Description = %s"%(category['id'],category['name'],category['description']))
Metadata
Release files for kbgetter 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| KBGetter-0.1.6.tar.gz | 5.8 kB | Without provenance | Details for KBGetter-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| KBGetter-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for KBGetter-0.1.6-py3-none-any.whl |
Total release size: 11.3 kB
Release files / KBGetter-0.1.6.tar.gz
| Download URL | KBGetter-0.1.6.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cbda901a665ac4b8226efcfb47ed709ca2fa8e7d272988277059cddbf627376
|
|
BLAKE2b-256 checksum How to use checksums |
c70db30937b1fabc6589c52a69213b31623d23055db91baf9559c17b6b455aa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.7.8 Windows/10
|
Release files / KBGetter-0.1.6-py3-none-any.whl
| Download URL | KBGetter-0.1.6-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
690ae61b97723b4a059e361a75740b9d8be7c8c7aa43738632e778fd3ae5e927
|
|
BLAKE2b-256 checksum How to use checksums |
46db8799f6c84040f8c447445702a1ef3eeabdf2b5f9f08149ff6e7f81f188d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.7.8 Windows/10
|
Security for kbgetter 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.