Vk Connections: the shortest path from one vk user to another
Library that finds the shortest path from one vk user to another through friends.
VkConnection classes
class Create(keys)
Parametrs:
- keys - list of 4 Vk api keys (user or community access)
Note that keys is a list with exactly 4 api keys, this requires fast work of library (each request being processed under 30 sec)
Methods of Create class
getConnection(userFrom, userTo)
Parameters:
- userFrom – id/nickname/link to user A
- userTo – id/nickname/link to user B
Result: A list of lists of dictionaries {id: person_id, full_name: person_full_name, photo: person_photo}
printResult(result) - prints the result from main method
Installation
pip install vkconnections
Example
import vkconnections
# Vk API Keys
firstKey = 'XXX'
secondKey = 'XXX'
thirdKey = 'XXX'
fourthKey = 'XXX'
keys = [firstKey, secondKey, thirdKey, fourthKey] # all the keys in one list
vk = vkconnections.Create(keys) # creating an instance of a class
# users for making a way
userFrom = "alsu"
userTo = "dm"
result = vk.getConnection(userFrom, userTo) # receiving a result
vk.printConnection(result) # printing result
Output:
Metadata
Release files for vkconnections 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vkconnections-0.0.8.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vkconnections-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / vkconnections-0.0.8.tar.gz
| Download URL | vkconnections-0.0.8.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a32aca1c417fb7e5305b296c38f2f3cdabe85290b5b2f657150004411b39e30
|
|
BLAKE2b-256 checksum How to use checksums |
0d6ee162316e6df1833e6fa173cd7738f2037020ca1668ae2eccf9f3ea91cb46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / vkconnections-0.0.8-py3-none-any.whl
| Download URL | vkconnections-0.0.8-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b8c3462cc7b32e6673b643fac3f712080c566d69b1a9f7bf662ed9e8549a556
|
|
BLAKE2b-256 checksum How to use checksums |
29a8845161b9e05952507fbdfb2f695b668c4bafc1073e7ba850dbef11522530
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Security for vkconnections 0.0.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.