Mads Marquart
71f19dd3c7
Move fetchAllUsers parsing into User._from_all_fetch
2019-03-10 20:22:56 +01:00
Mads Marquart
e166b472c5
Move message pull parsing into Message._from_pull
2019-03-10 20:10:19 +01:00
Mads Marquart
28c867a115
Simplify _graphql.py imports
2019-03-10 19:54:36 +01:00
Mads Marquart
f20a04b2a0
Move graphql_to_message -> Message._from_graphql
2019-03-10 19:50:06 +01:00
Mads Marquart
1f961b2ca7
Move thread parser dispatching into _client.py
...
I know, it's not pretty, but it doesn't belong in _graphql.py either
2019-03-10 19:39:22 +01:00
Mads Marquart
e579e0c767
Move graphql_to_quick_reply into _quick_reply.py
2019-03-10 19:35:07 +01:00
Mads Marquart
6693ec9c36
Move graphql_to_extensible_attachment into _message.py
2019-03-10 19:33:58 +01:00
Mads Marquart
53856a3622
Move attachment and subattachment dispatching to _file.py
2019-03-10 19:26:01 +01:00
Mads Marquart
0b99238676
Move subattachment parsing to the respective models
2019-03-10 19:19:50 +01:00
Mads Marquart
cb2c68e25a
Move graphql_to_page -> Page._from_graphql
2019-03-10 17:36:41 +01:00
Mads Marquart
fd5553a9f5
Move graphql_to_group -> Group._from_graphql
2019-03-10 17:33:46 +01:00
Mads Marquart
60ebbd87d8
Move graphql_to_thread user parsing to User._from_thread_fetch
2019-03-10 17:26:47 +01:00
Mads Marquart
3a5185fcc8
Move graphql_to_user -> User._from_graphql
2019-03-10 17:21:06 +01:00
Mads Marquart
ce469d5e5a
Move get_customization_info -> Thread._parse_customization_info
2019-03-10 17:02:03 +01:00
Mads Marquart
4f0f126e48
Make Github Releases deploy in the published state
2019-03-10 16:45:16 +01:00
Mads Marquart
94c30a2440
Merge pull request #405 from carpedm20/private-api
...
Privatize `client`, `utils` and `graphql` submodules
2019-03-10 16:42:48 +01:00
Mads Marquart
1460b2f421
Version up, thanks to @oneblue and @darylkell
v1.6.4
2019-03-10 16:33:44 +01:00
Mads Marquart
968223690e
Move plan parsing to the Plan model
...
- Add `GuestStatus` enum
- Add `Plan.guests` property
- Made `Plan.going`, `Plan.declined` and `Plan.invited` property accessors to `Plan.guests`
2019-03-10 16:21:22 +01:00
Mads Marquart
789d9d8ca1
Split graphql_to_attachment into smaller methods
2019-03-07 21:22:56 +01:00
Mads Marquart
2ce99a2c44
Split graphql_to_extensible_attachment into smaller methods
2019-03-07 20:50:14 +01:00
Mads Marquart
ee207e994f
Move graphql_to_live_location -> LiveLocationAttachment._from_pull
2019-03-07 20:17:29 +01:00
Mads Marquart
c374aca890
Fix _util exception import
2019-03-07 19:59:25 +01:00
Mads Marquart
c28ca58537
Add missing attributes to Poll and PollOption __init__
2019-03-07 19:58:24 +01:00
Mads Marquart
0578ea2c3c
Move graphql_to_poll -> Poll._from_graphql
2019-03-07 19:52:29 +01:00
Mads Marquart
e51ce99c1a
Move graphql_to_poll_option -> PollOption._from_graphql
2019-03-07 19:47:36 +01:00
Mads Marquart
3440039610
Move graphql_to_sticker -> Sticker._from_graphql
2019-03-07 19:07:00 +01:00
Mads Marquart
279f637c75
Move graphql_color_to_enum -> ThreadColor._from_graphql
2019-03-07 18:54:38 +01:00
Mads Marquart
d940b64517
Move enum_extend_if_invalid -> Enum._extend_if_invalid
2019-03-07 18:42:58 +01:00
Mads Marquart
403870e39e
Move emojisize pull parsing into the model
2019-03-07 18:13:05 +01:00
Mads Marquart
0383d613e6
Move ActiveStatus pull parsing into the model
2019-03-07 18:12:37 +01:00
Mads Marquart
40e9825ee0
Add deprecated public graphql
module
2019-02-24 23:21:17 +01:00
Mads Marquart
ab9ca94181
Rename graphql.py -> _graphql.py
2019-02-24 23:17:36 +01:00
Mads Marquart
0f99a23af7
Add deprecated public utils
module
2019-02-24 23:16:40 +01:00
Mads Marquart
bc5163adaf
Rename utils.py -> _util.py
2019-02-24 23:15:12 +01:00
Mads Marquart
0561718917
Import utils.py and graphql.py directly into the global module
2019-02-24 23:08:23 +01:00
Mads Marquart
c1861627fb
Make deprecated public client
module
2019-02-24 23:06:29 +01:00
Mads Marquart
e5eccab871
Rename client.py -> _client.py
2019-02-24 23:01:26 +01:00
Mads Marquart
27f76ba659
Merge pull request #400 from carpedm20/pull-delta-refactor
...
Move pull delta parsing into separate method
2019-02-24 20:52:26 +01:00
Mads Marquart
589117b9e7
Move pull delta parsing into _parseDelta (commit 2)
2019-02-24 20:45:44 +01:00
Mads Marquart
80300cd160
Move pull delta parsing into _parseDelta (commit 1)
2019-02-24 20:45:01 +01:00
Mads Marquart
76171408cc
Merge pull request #399 from carpedm20/attrs
...
Use attrs to declare our models
2019-02-24 20:24:21 +01:00
Mads Marquart
c1800a174f
Update minimum attrs version
2019-02-24 20:18:11 +01:00
Mads Marquart
8ae8435940
Use attrs, to remove verbose __init__ and __repr__ methods
...
Backwards compatibility is strictly preserved in `__init__`, including parameter names, defaults and position. Whenever that's difficult using `attrs`, the custom `__init__` is kept instead (for the time being).
`__repr__` methods have changed to the format `attrs` use, but people don't rely on this for anything other than debug output, so it shouldn't be a problem.
2019-02-24 20:18:07 +01:00
Mads Marquart
f916cb3b53
Add attrs
as dependency
2019-02-24 20:18:04 +01:00
Mads Marquart
929c2137bf
Move model docstrings into the class level, out of init
2019-02-24 20:18:00 +01:00
Mads Marquart
98056e91c5
Split models.py into several files ( #398 )
...
* Move exception models into separate file
* Move thread model into separate file
* Move user model into separate file
* Move group and room models into separate file
* Move page model into separate file
* Move message model into separate file
* Move basic attachment models into separate file
* Move sticker model into separate file
* Move location models into separate file
* Move file attachment models into separate file
* Move mention model to reside with message model
* Move quick reply models into separate file
* Move poll models into separate file
* Move plan model into separate file
* Move active status model to reside with user model
* Move core enum model into separate file
* Move thread-related enums to reside with thread model
* Move typingstatus model to reside with user model
* Move emojisize and reaction enums to reside wtih message model
2019-02-24 20:06:59 +01:00
Mads Marquart
944a7248c3
Disable travis email notifications
2019-02-24 02:17:03 +01:00
darylkell
caa2ecd0b7
Fix LocationAttachment ( #395 )
...
Set `LocationAttachment.address` instead of `latitude` and `longitude`, when no GPS coords are supplied. Fixes #392
2019-02-19 12:19:20 +01:00
Blue
dfc2d0652f
Make fetchUnread and fetchUnseen include group chats ( #394 )
...
* Correct fetchUnread and fetchUnseen to include 1:1 chats and group chats
2019-02-18 22:37:16 +01:00
Mads Marquart
8d25540445
Version up, thanks to @kapi2289
v1.6.3
2019-02-03 22:07:44 +01:00