mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
48 lines
1.6 KiB
Markdown
48 lines
1.6 KiB
Markdown
You don't normaly create instances of any class but `Github`.
|
|
You obtain instances through calls to `get_` and `create_` methods.
|
|
|
|
Class `Github`
|
|
==============
|
|
* Constructed from user's login and password
|
|
* `get_user()`: `AuthenticatedUser`
|
|
* `get_user( login )`: `NamedUser`
|
|
* `get_organization( login )`: `Organization`
|
|
* `get_gist( id )`: `Gist`
|
|
* `get_gists()`: list of `Gist`
|
|
|
|
{% for class in classes|dictsort:"name" %}
|
|
Class `{{ class.name }}`
|
|
======={% for char in class.name %}={% endfor %}=
|
|
|
|
Attributes
|
|
----------
|
|
{% for attribute in class.attributes|dictsort:"name" %}* `{{ attribute.name }}`{% include "ReferenceOfClasses.Type.md" with type=attribute.type only %}
|
|
{% endfor %}
|
|
|
|
{% regroup class.methods|dictsort:"group" by group as method_groups %}
|
|
|
|
{% for method_group in method_groups %}
|
|
|
|
{{ method_group.grouper|capfirst }}
|
|
{% for letter in method_group.grouper %}-{% endfor %}
|
|
|
|
{% for method in method_group.list %}
|
|
|
|
* `{{ method.name|join:"_" }}({% include "ReferenceOfClasses.Parameters.md" with function=method only %})`{% include "ReferenceOfClasses.Type.md" with type=method.type only %}
|
|
|
|
{% for parameter in method.mandatory_parameters %}
|
|
* `{{ parameter.name }}`{% include "ReferenceOfClasses.Type.md" with type=parameter.type only %}
|
|
{% endfor %}
|
|
{% for parameter in method.optional_parameters %}
|
|
* `{{ parameter.name }}`{% include "ReferenceOfClasses.Type.md" with type=parameter.type only %}
|
|
{% endfor %}
|
|
{% if method.variadic_parameter %}
|
|
* `{{ method.variadic_parameter.name }}`{% include "ReferenceOfClasses.Type.md" with type=method.variadic_parameter.type only %}
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|