Wykres commitów

11 Commity (58c8f95e5410e2c36df092b4432dc4f7c5f67edb)

Autor SHA1 Wiadomość Data
Alain St-Denis 58c8f95e54 Add audio and video media objects and much more. 2022-08-19 17:01:44 +00:00
Jason Robinson 836e19b40d Remove the network utils `fetch_host_ip_and_country` and `fetch_country_by_ip`
The library that was used starting to require an API key.
2020-12-20 02:59:17 +02:00
Jason Robinson 539c7f8bfb Fix IPData lookup after 3.x version breaking changes
Thanks CI! <3
2019-05-12 18:56:40 +03:00
Jason Robinson 7d8ae2c814 Allow passing extra headers to network util fetch_document 2019-03-02 01:24:57 +02:00
Jason Robinson 5baa0b5fe6 Added network utility `network.fetch_host_ip` to fetch IP by hostname 2019-02-13 23:05:10 +02:00
Jason Robinson a2c8d1c061 Switch to ipdata.co service for country lookups 2018-05-27 20:34:47 +03:00
Jason Robinson 33c6ed817a Add fetching of IP and country
Network utils has a method `fetch_host_ip_and_country` which will
fetch both. The country fetching uses the `ip-api.com` free service
to resolve country information.
2018-05-07 22:58:25 +03:00
Jason Robinson 5b917838a8 Ensure send_document accepts headers in a case insensitive fashion 2016-10-18 22:33:35 +03:00
Jason Robinson 17ba97ab1f Fix crash in send_document when passing in custom headers
`federation.utils.network.send_document` incorrectly passed in `kwargs` to `requests.post`, causing an error when sending custom headers.
2016-10-18 22:11:27 +03:00
Jason Robinson ee5b16415e Add send_document network utility
It's a wrapper around requests.post that adds the correct user agent and silently captures common requests exceptions and returns them instead.
2016-09-05 22:58:08 +03:00
Jason Robinson 1f9c4d8e68 Add utility method to fetch remote document
Works with either url or host/path. Falls back to http if needed or SSL connection error (optionally cert error too).

Refs: #22
2016-07-22 23:53:10 +03:00