Skip to main content

VKLight

Легкая обёртка для работы с VK API.

Установка

pip install VKLight

Пример использования

from VKLight import VKLight, VKLightError

api = VKLight({
	"access_token": "...",
	"v": "5.150",
	"lang": "ru",
	"host": "api.vk.me"
})
try:
	api.call("users.get", { "user_id": 1})
except VKLightError as e:
	print(e) 
# {'response': [{'id': 1, 'first_name': 'Павел', 'last_name': 'Дуров', 'is_closed': False, 'can_access_closed': True}]}

или

api("users.get", {"user_id": 1})
# {'response': [{'id': 1, 'first_name': 'Павел', 'last_name': 'Дуров', 'is_closed': False, 'can_access_closed': True}]}

Использование execute-методов

api.execute(r"return API.users.get({'user_id': 1});")
# {'response': [{'id': 1, 'first_name': 'Павел', 'last_name': 'Дуров', 'is_closed': False, 'can_access_closed': True}]}

Лицензия

MIT License

Metadata

Release files for vklight 1.3.4.22092020

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vklight 1.3.4.22092020
File Size Uploaded Provenance Actions
VKLight-1.3.4.22092020.tar.gz 3.5 kB Without provenance Details for VKLight-1.3.4.22092020.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vklight 1.3.4.22092020
File Interpreter ABI Platform Actions
VKLight-1.3.4.22092020-py3-none-any.whl Python 3 none any Details for VKLight-1.3.4.22092020-py3-none-any.whl

Total release size: 7.2 kB

Release files / VKLight-1.3.4.22092020.tar.gz

Download URL VKLight-1.3.4.22092020.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fac9626fd998dbc64fd77b2565ee08248010149afc361120631b49fc109c22ef
BLAKE2b-256 checksum
How to use checksums
44c8e47710b3209eab48351c2327db3bd4ce63279639ce6247aec8dce6de1ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.3 Windows/10

Release files / VKLight-1.3.4.22092020-py3-none-any.whl

Download URL VKLight-1.3.4.22092020-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8486f8779ab87ccba9eab10ed8829f77ec6e6e555d09a6e6447076a1b3743da6
BLAKE2b-256 checksum
How to use checksums
7a06b2dc6ae8fc0db628c65fc28fe12b91f4387755c9175be548339bba914af1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.3 Windows/10

Security for vklight 1.3.4.22092020

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page