This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2064b54
commit 51fd9d6
Showing
12 changed files
with
257 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ auto-save-list | |
tramp | ||
.\#* | ||
|
||
docs/build/** | ||
*.pickle | ||
# Org-mode | ||
.org-id-locations | ||
*_archive | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
formats: all | ||
|
||
python: | ||
version: 3.8 | ||
install: | ||
- method: pip | ||
path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{ fullname | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. autoclass:: {{ objname }} | ||
:members: | ||
|
||
{% block methods %} | ||
{%- if methods %} | ||
.. rubric:: {{ _('Methods') }} | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in methods if item != '__init__' and item not in inherited_members %} | ||
~{{ name }}.{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- endblock %} | ||
|
||
{% block attributes %} | ||
{%- if attributes %} | ||
.. rubric:: {{ _('Attributes') }} | ||
|
||
.. autosummary:: | ||
{% for item in attributes %} | ||
~{{ name }}.{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{{ fullname | escape | underline }} | ||
|
||
.. currentmodule:: {{ fullname }} | ||
|
||
.. automodule:: {{ fullname }} | ||
|
||
{% block attributes %} | ||
{% if attributes %} | ||
.. rubric:: Module Attributes | ||
|
||
.. autosummary:: | ||
{% for item in attributes %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block functions %} | ||
{% if functions %} | ||
.. rubric:: {{ _('Functions') }} | ||
|
||
.. autosummary:: | ||
{% for item in functions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block classes %} | ||
{% if classes %} | ||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
:toctree: . | ||
:nosignatures: | ||
{% for class in classes %} | ||
{{ class }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block exceptions %} | ||
{% if exceptions %} | ||
.. rubric:: {{ _('Exceptions') }} | ||
|
||
.. autosummary:: | ||
{% for item in exceptions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block modules %} | ||
{% if modules %} | ||
.. rubric:: Modules | ||
|
||
.. autosummary:: | ||
:toctree: | ||
:recursive: | ||
{% for item in modules %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
======== | ||
Examples | ||
======== | ||
|
||
Uploading a Image to sxcu.net | ||
***************************** | ||
|
||
To upload an image `foo.png` located in the same directory as the script and print the url: | ||
|
||
.. code-block:: python | ||
import sxcu | ||
connector = sxcu.SXCU() | ||
result = connector.upload_image("foo.png") | ||
print(result["url"]) | ||
Parameters acceped are | ||
|
||
.. currentmodule:: sxcu | ||
|
||
.. autosummary:: | ||
:recursive: | ||
|
||
~SXCU.upload_image | ||
|
||
Uploading Image with ``og_properties`` | ||
************************************** | ||
|
||
What is ``og_properties``? | ||
-------------------------- | ||
|
||
`The Open Graph protocol <https://ogp.me/>`_ The Open Graph protocol enables any web page to become a rich object in a social graph. | ||
|
||
`sxcu.net <https://sxcu.net>`_ allows the following properties to be changed for changing the way it embed in apps and websites. | ||
|
||
How to use it? | ||
-------------- | ||
|
||
Using the class | ||
|
||
.. autosummary:: | ||
:recursive: | ||
|
||
~og_properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Reference | ||
========= | ||
|
||
This it python API reference of the current things implemented. | ||
|
||
.. currentmodule:: sxcu | ||
|
||
******************** | ||
Python API Reference | ||
******************** | ||
|
||
.. autosummary:: | ||
:toctree: reference | ||
|
||
~SXCU | ||
~og_properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
sxcu.SXCU | ||
========= | ||
|
||
.. currentmodule:: sxcu | ||
|
||
.. autoclass:: SXCU | ||
:members: | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~SXCU.collection_details | ||
~SXCU.create_collection | ||
~SXCU.create_link | ||
~SXCU.delete_image | ||
~SXCU.domain_list | ||
~SXCU.upload_image | ||
~SXCU.upload_text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
sxcu.og\_properties | ||
=================== | ||
|
||
.. currentmodule:: sxcu | ||
|
||
.. autoclass:: og_properties | ||
:members: | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
~og_properties.export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters