Skip to content

Commit

Permalink
some refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
GLEF1X committed Apr 13, 2021
2 parents 9c04fd9 + 03b143a commit 1519173
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ formats: all
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- requirements: docs/requirements.txt
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

[![PyPI version](https://img.shields.io/pypi/v/glQiwiApi.svg)](https://pypi.org/project/glQiwiApi/) [![Python](https://img.shields.io/badge/Python-3.7+-blue)](https://www.python.org/downloads/) [![Code Quality Score](https://www.code-inspector.com/project/20780/score/svg)](https://frontend.code-inspector.com/public/project/20780/glQiwiApi/dashboard) ![Code Grade](https://www.code-inspector.com/project/20780/status/svg) ![Downloads](https://img.shields.io/pypi/dm/glQiwiApi) ![docs](https://readthedocs.org/projects/pip/badge/?version=latest)


### :loudspeaker:New feature. Add YooMoney support and `pydantic` models to library!

### :fire:Docs: [here](https://glqiwiapi.readthedocs.io/en/master/index.html)
## Official api resources:
* __:fire:Docs: [here](https://glqiwiapi.readthedocs.io/en/master/index.html)__
* 🖱️ __Developer contacts: [![Dev-Telegram](https://img.shields.io/badge/Telegram-blue.svg?style=flat-square&logo=telegram)](https://t.me/GLEF1X)__

### :floppy_disk:Installation

Expand Down
2 changes: 1 addition & 1 deletion docs/API.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Payment wrappers
:members:

Low level API
_____________
-------------
.. automodule:: glQiwiApi.basic_requests_api
:members:

Expand Down
50 changes: 22 additions & 28 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'

latex_engine = 'xelatex'

# The master toctree document.
master_doc = 'index'

Expand Down Expand Up @@ -89,7 +87,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = []
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
Expand Down Expand Up @@ -123,38 +121,39 @@

# -- Options for LaTeX output ---------------------------------------------

latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# latex_documents = [
# (master_doc, 'glQiwiApi.tex',
# u'glQiwiApi Documentation',
# u'Levent Duivel', 'manual'),
# ]

# latex_elements = {
# # The paper size ('letterpaper' or 'a4paper').
# #
# # 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# # The font size ('10pt', '11pt' or '12pt').
# #
# # 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# # Additional stuff for the LaTeX preamble.
# #
# # 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}
# # Latex figure (float) alignment
# #
# # 'figure_align': 'htbp',
# }

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'aiogram.tex', 'aiogram Documentation',
'Illemius / Alex Root Junior', 'manual'),
]

# -- Options for manual page output ---------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'aiogram', 'aiogram Documentation',
(master_doc, 'glQiwiApi', 'glQiwiApi Documentation',
[author], 1)
]

Expand All @@ -163,11 +162,6 @@
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'aiogram', 'aiogram Documentation',
author, 'aiogram', 'Asynchonyously Python framework for Telegram Bot API',
'Miscellaneous'),
]

autoclass_content = "both"
autodoc_member_order = "bysource"
Expand Down
1 change: 0 additions & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,4 @@ You can speedup api by following next instructions:
.. code-block:: bash
$ pip install orjson
.. _GitHub репозитория: https://github.com/GLEF1X/glQiwiApi
3 changes: 2 additions & 1 deletion glQiwiApi/utils/basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ async def wrapper(*args, **kwargs):


def custom_load(data):
return orjson.loads(orjson.dumps(data))
import json
return json.loads(json.dumps(data))


def allow_response_code(status_code):
Expand Down

0 comments on commit 1519173

Please sign in to comment.