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.8

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.8
File Size Uploaded Provenance Actions
VKLight-1.3.8.tar.gz 2.8 kB Without provenance Details for VKLight-1.3.8.tar.gz

Built distribution (wheel)

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

Total release size: 5.5 kB

Release files / VKLight-1.3.8.tar.gz

Download URL VKLight-1.3.8.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ed4e5dc4e295735d4820d85ff6f9431fffc09ae86df6c7220364b5870cf31ce2
BLAKE2b-256 checksum
How to use checksums
c670d054f1cef80cce0d2064db41b7904aa1fd708375e0fab7382d8ec39d63d3
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.8-py3-none-any.whl

Download URL VKLight-1.3.8-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a7350422b447a618a5219f66bef3fa380c2c26a492654bb958137d3d60bb464
BLAKE2b-256 checksum
How to use checksums
4c3549b68fe7c21fb03379db481b475f6addb797bb28cefe98845c1bdf902fd5
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.8

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