[](https://travis-ci.org/ramusus/django-vkontakte-groups-migration) [](https://coveralls.io/r/ramusus/django-vkontakte-groups-migration)
Приложение позволяет взаимодействовать с историей миграции пользователей в группах Вконтакте через Вконтакте API используя стандартные модели Django
## Установка
pip install django-vkontakte-groups-migration
В `settings.py` необходимо добавить:
INSTALLED_APPS = (
...
'oauth_tokens',
'vkontakte_api',
'vkontakte_users',
'vkontakte_groups',
'vkontakte_groups_migration',
)
# oauth-tokens settings
OAUTH_TOKENS_HISTORY = True # to keep in DB expired access tokens
OAUTH_TOKENS_VKONTAKTE_CLIENT_ID = '' # application ID
OAUTH_TOKENS_VKONTAKTE_CLIENT_SECRET = '' # application secret key
OAUTH_TOKENS_VKONTAKTE_SCOPE = ['ads,wall,photos,friends,stats'] # application scopes
OAUTH_TOKENS_VKONTAKTE_USERNAME = '' # user login
OAUTH_TOKENS_VKONTAKTE_PASSWORD = '' # user password
OAUTH_TOKENS_VKONTAKTE_PHONE_END = '' # last 4 digits of user mobile phone
## Покрытие методов API
* [groups.getMembers](http://vk.com/developers.php?oid=-1&p=groups.getMembers) – возвращает список участников группы;
В планах:
* Перенести реализацию groups.getMembers в приложение [`django-vkontakte-groups`](http://github.com/ramusus/django-vkontakte-groups/);
## Примеры использования
### Получение среза подписчиков группы
>>> from vkontakte_groups.models import Group
>>> group = Group.remote.fetch(ids=[16297716])[0]
>>> group.update_users()
Срез подписчиков доступен через менеджер
>>> migration = group.migrations.all()[0]
>>> len(migration.members_ids)
5277888
>>> migration.members_count
5277888
Подписчики доступны через менеджер
>>> group.users.count()
5277888
Metadata
Release files for django-twitter-relations-history 0.3.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 | Actions |
|---|---|---|---|---|
| django-twitter-relations-history-0.3.8.tar.gz | 16.5 kB | Without provenance | Details for django-twitter-relations-history-0.3.8.tar.gz |
Release files / django-twitter-relations-history-0.3.8.tar.gz
| Download URL | django-twitter-relations-history-0.3.8.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bc7be3d14fc9d191f44e1b4a4faf2ae7b188464a675e0d0775362864669357c
|
|
BLAKE2b-256 checksum How to use checksums |
3f43e1d6cc328a60c9692a5d48ba7780679f02940d6379e5000150b5c29dbdd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-twitter-relations-history 0.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.