vtdiscourse package

Submodules

vtdiscourse.vtdiscourse module

class vtdiscourse.vtdiscourse.Create(*args, **kwargs)[source]

Bases: object

dumps(data)[source]
class vtdiscourse.vtdiscourse.Discourse(host, api_username, api_key, *args, **kwargs)[source]

Bases: pydiscourse.client.DiscourseClient

Get the Discourse content

Search a session from Discourse Create a new session for Discourse host, username, key should exist then yield error

catetory(name, parent=None, **kwargs)[source]

override the DiscourseClient.category

client

This is the activate to get certification from discourse web :url : Discourse web :username: Discourse user :key : Discourse api key

get_all_categories
get_category(name, parent=None, **kwargs)[source]
get_category_topic_content(id, key)[source]

Get the key’s content in the topics :id : int, index of the topics range :key: string

get_category_topics(name='meta-data')[source]
post_category(category, text_color='FFFFFF', permissions=None, parent=None, **kwargs)[source]
post_topics(content, **kwargs)[source]

This is create the post with the category, use kwargs title : content : category:

serarch_topic(term, key, **kwargs)[source]
class vtdiscourse.vtdiscourse.Parser(name, githubfile, *args, **kwargs)[source]

Bases: vtdiscourse.vtdiscourse.Create

Parser the markdown file, and follow format create a .json file :name :githubfile

get_content
get_gitbook
get_gitbook_url
get_name
get_summary
get_topics_content

create json base return Orderdict() format

get_url
githubfile

Module contents