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
Mads Marquart
6ea174bfd4
Merge pull request #389 from kapi2289/fix-388
...
Fix #388 issue
2019-02-03 22:06:26 +01:00
Kacper Ziubryniewicz
56e43aec0e
Apply suggestions and fixes from review
2019-02-03 19:03:43 +01:00
Kacper Ziubryniewicz
491d120c25
Fix #388 issue
2019-02-03 14:45:10 +01:00
Mads Marquart
82d071d52c
Version up
v1.6.2
2019-01-31 21:27:04 +01:00
Mads Marquart
8190654a91
Add section about black
in CONTRIBUTING.rst
2019-01-31 21:09:15 +01:00
Mads Marquart
5e21702d16
Add black code style badge
2019-01-31 21:00:17 +01:00
Mads Marquart
3df4172237
Add travis
format checking step
2019-01-31 20:59:48 +01:00
Mads Marquart
e0710a2ec1
Format strings using black
2019-01-31 20:55:22 +01:00
Mads Marquart
d20fc3b9ce
Format using black
(without string normalization)
2019-01-31 20:54:32 +01:00
Mads Marquart
f25faec108
Version up
v1.6.1
2019-01-31 20:26:17 +01:00
Mads Marquart
2750658c3c
Fix #385
2019-01-31 20:26:04 +01:00
Mads Marquart
e6bc5bbab3
Version up, thanks to @kapi2289 and @2FWAH
v1.6.0
2019-01-31 20:20:17 +01:00
Mads Marquart
de5f3a9d9e
Merge branch 'pr/300'
2019-01-31 20:13:27 +01:00
Mads Marquart
7f0da012c2
Few nitpicky fixes
2019-01-31 20:12:59 +01:00
Mads Marquart
76ecbf5eb0
Merge branch 'pr/325'
2019-01-31 19:57:22 +01:00
Mads Marquart
06881a4c70
Add formatMentions
docstring
2019-01-31 19:56:35 +01:00
Mads Marquart
c14fdd82db
Merge branch 'pr/338'
2019-01-31 19:29:54 +01:00
Mads Marquart
b1a02ad930
Merge pull request #342 from kapi2289/quick_replies
...
[Feature] Quick replies
2019-01-31 19:26:03 +01:00
Mads Marquart
2b580c60e9
Readd deprecated markAlive
parameter
2019-01-31 19:23:46 +01:00
Mads Marquart
27ffba3b14
Fix a few isinstance checks
2019-01-31 19:21:52 +01:00
Mads Marquart
fb7bf437ba
Merge pull request #384 from carpedm20/github-releases-ci
...
Automatic GitHub Releases
2019-01-25 20:01:37 +01:00
Mads Marquart
d8baf0b9e7
Put automatic GitHub releases in the draft state
...
This is done so that I can edit the description as needed, before publishing
2019-01-25 19:35:20 +01:00
Mads Marquart
a6945fe880
Merge branch 'disable-online-tests'
2019-01-25 19:18:03 +01:00