github: DEPRECATE my.coding.github

Instead my.github.all should be used (still backward compatible)

The reasons are
a) I don't feel that grouping (i.e. my.coding.*) makes much sense
b) using .all pattern (same way as twitter) allows for more composable and cleaner separation of GDPR and API data
This commit is contained in:
Dima Gerasimov 2020-06-01 22:42:45 +01:00
parent d7aff1be3f
commit ca39187c63
7 changed files with 286 additions and 244 deletions

View file

@ -1,15 +1,16 @@
#!/usr/bin/env python3
from more_itertools import ilen
from my.coding.github import get_events, iter_gdpr_events
from my.coding.github import get_events
def test_gdpr():
assert ilen(iter_gdpr_events()) > 100
import my.github.gdpr as gdpr
assert ilen(gdpr.events()) > 100
def test():
events = get_events()
assert len(events) > 100
assert ilen(events) > 100
for e in events:
print(e)