Commit graph

154 commits

Author SHA1 Message Date
Martin Hjelmare
09fb9ba991
Migrate from pytz (#377) 2022-02-17 08:12:01 -08:00
Gary Cobb
cc631cdce7
Fix for 450 reauthentication failure bug (#372)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-16 14:51:28 -08:00
Richie B2B
42331c3e37
Keyerror data token (#316)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-16 14:45:11 -08:00
Hugo
592ff464c5
Support Python 3.6 to 3.10 (#371)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Quentin POLLET <polletquentin74@me.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-16 11:00:29 -08:00
Martin Hjelmare
e0e9bc270f
Add github actions (#369) 2022-02-14 14:41:53 -08:00
Richie B2B
8671cc6e2c
Create safe cookiejar directory per user (#320) 2021-02-01 07:16:19 +00:00
Niccolo Zapponi
68566dc3a5
Merge pull request #310 from nzapponi/2fa-support
Add support for 2FA and new Trust token logic
2021-01-28 08:12:32 +00:00
Niccolò Zapponi
94f8ef8aaa
Fixed bug 2020-12-11 09:41:35 +00:00
Niccolò Zapponi
e0f11158e1
Added support for reauth if FMIP requires it 2020-12-11 09:36:48 +00:00
Niccolò Zapponi
cb302d58f5
Removed a lot of logging 2020-12-09 08:14:40 +00:00
Niccolò Zapponi
9190c62a80
Added service specific log in 2020-12-09 08:03:19 +00:00
Niccolò Zapponi
285a114a64
Fixed %s formatting 2020-11-24 07:20:49 +00:00
Niccolò Zapponi
6fa52c6337
Restored python2.7 compatibility 2020-11-23 06:47:09 +00:00
Niccolò Zapponi
e14d22908d
Set remember me to true to avoid Apple emails 2020-11-17 08:36:08 +00:00
Niccolò Zapponi
1675a8dc11
Improved support for 421s 2020-11-12 08:37:29 +00:00
Niccolò Zapponi
8e55d638f1
Added retry for error codes 421 and 500 2020-11-10 19:42:46 +00:00
Niccolò Zapponi
6f0aa0360a
Added support to force auth refresh 2020-11-09 09:11:14 +00:00
Niccolò Zapponi
8f1bd9473a
Updated logging levels 2020-11-05 08:33:12 +00:00
Niccolò Zapponi
fc833555ac
Added new trust token support for old 2SA method 2020-11-05 08:02:05 +00:00
Niccolò Zapponi
c6fecebde6
Removed repetitive code 2020-10-29 17:06:39 +00:00
Niccolò Zapponi
4adbfb32ec
Added tests 2020-10-29 16:51:08 +00:00
Niccolò Zapponi
b3aee79dcb
Added support for 2FA 2020-10-29 09:26:12 +00:00
Mohamed Akram
09652b0d27
Fix downloading zero-byte files (#301) 2020-10-15 16:36:36 +02:00
jfburdet
e45b6ddf1b
Fix albumNameEnc can be null in Photos (#300)
* Fix proposal for #285

* Update pyicloud/services/photos.py

Co-authored-by: Quentame <polletquentin74@me.com>
2020-09-25 14:00:55 +02:00
RobotSe7en
29bb3678c1
Fix Drive mtime and btime (#299)
* Update drive.py

fix timestamp about api.drive.upload()

* Update pyicloud/services/drive.py

Co-authored-by: Quentame <polletquentin74@me.com>
2020-09-25 13:58:39 +02:00
Andreas Thienemann
0401299dbb
Allow zero-sized files on Drive (#294)
The webinterface to drive claims, that zero sized files are not supported on Drive.

Uploading one seems to work however with the only caveat that no receipt is returned. Handle this case by only adding receipt if available to the `_update_contentws()` call.

Drive-By: Add a `get_app_data()` call to the Drive module. This seems to be a replacement for ubiquity.
2020-08-11 16:07:57 +02:00
Andreas Thienemann
d87ab69a4a
Add new file operations mkdir, rename, delete and upload to drive service. (#291)
* Add new file operations mkdir, rename, upload and delete to drive service.

The drive service only supports the bare minimum right now, improve
this situation.

Also support upload of new files to the iCloud Drive.

* Apply suggestions from code review

Co-authored-by: Quentame <polletquentin74@me.com>

* Minor fix, return the right json part when calling mkdir and rename

* Remove more %s indirections...

* Run Black. Again...

Co-authored-by: Quentame <polletquentin74@me.com>
2020-08-10 19:09:48 +02:00
Mohamed Akram
852151ef5f
Fix Drive KeyError: 'extension' (#283) 2020-06-17 23:56:33 +02:00
Quentame
a119ccd5d9
Fix 450 RecursionError (#279) 2020-05-03 23:59:51 +02:00
Quentame
e6429b9ada
Add iCloud Drive support (#278)
* Initial version of the iCloud drive client

* Pylint & black

* Add tests + some fixes

* Fix pipe

Co-authored-by: Herve Saint-Amand <herve@brainnwave.com>
2020-05-03 04:54:11 +02:00
Quentame
696db8cf20
Rework Python 2-3 compat (#268) 2020-04-08 00:19:42 +02:00
Quentame
e3bdcea15a
Add account family + storage services (#250) 2020-04-04 00:48:32 +02:00
Quentame
91ac1d956e
Test rework + add account & fmi device test (#266)
* Rework tests

* Add account test

* Add Find My iPhone devices test

* Remove logger

* Working with Python 3.4

* Make test working in more setups

@patch("keyring.get_password", return_value=None)

* Fix Python 2.7 ASCII

* Pylint

* Self reviewed
2020-04-03 18:50:12 +02:00
Max Koon
057ede8dde
Allow accessories to be retrieved from the FindMyiPhone service (#263)
* Allow for accessories to be retrived for the FindMyIPhone service

* added coma to fix black formatting
2020-04-02 19:11:21 +02:00
Quentame
ababe3cdf3
Back is black (#259)
* Back is black

* Format with black
2020-03-24 14:54:43 +01:00
Quentame
9588c0d448
Add cmdline/CLI tests (#258) 2020-03-24 12:08:27 +01:00
Quentame
1090393774
Replace PEP8 by pylint (#257) 2020-03-23 19:31:56 +01:00
Quentame
a6358630e3
Tests upgrade + tiny lib bump (#256) 2020-03-23 19:23:05 +01:00
Chad Johnson
6e25f8ce39
Additional key checking for photo version build-up (#163) 2020-03-21 00:38:02 +01:00
Quentame
0fefc5cff1
Fix Contact limit to 500 (#249)
* update contacts to fetch more than 500 contacts

* Make it work

Co-authored-by: Joshua Meier <joshim5@gmail.com>
2020-03-20 23:00:42 +01:00
Quentame
0757bc6ff2
Fix Calendar KeyError: 'Event' (#248) 2020-03-20 19:46:08 +01:00
Quentame
aa24871e53
Fix Reminder KeyError: 'description' (#247) 2020-03-20 19:14:43 +01:00
s.m
f69833637c
Added working delete function for photos (#159)
Co-authored-by: sebastian messier <sebastian.messier@flexreceipts.com>
2020-03-20 18:48:24 +01:00
Bob Carroll
1eb8ca26da
Fix AppleDevice.play_sound() : AttributeError on 'with_family' (#240) 2020-03-17 16:19:33 +01:00
Quentame
ffadb4cf3a
Choose to fetch family devices (#235) 2020-03-10 00:10:22 +01:00
Quentin POLLET
ef4eba7cdd Fix comment 2020-03-09 23:56:58 +01:00
Quentin POLLET
0d7d9e590b raise PyiCloudServiceNotActivatedException if webservice is not available 2020-03-09 23:52:03 +01:00
Quentin POLLET
01aeb8335a Sort Exceptions 2020-03-09 23:52:03 +01:00
Quentin POLLET
412cfd8c7e Errors are Exceptions
[breaking-change]
- PyiCloudAPIResponseError --> PyiCloudAPIResponseException
- PyiCloud2SARequiredError --> PyiCloud2SARequiredException
- NoStoredPasswordAvailable --> PyiCloudNoStoredPasswordAvailableException
- PyiCloudServiceNotActivatedErrror --> PyiCloudServiceNotActivatedException
2020-03-09 23:52:03 +01:00
Quentin POLLET
0e26d4e947 Remove duplicate PyiCloudNoDevicesException 2020-03-09 23:52:03 +01:00