b9c6888ae1
- update to 2.20.0: * extra AI api endpoints * more api endpoints * moved 2.20.* warnings into a proper Python PendingDeprecationWarning message * reduce processing of OpenAPI logic when content-type is application/json * warning now in its own file and warning sent to stderr or logging only if release number 2.20 or above * HTTPError can show up when you plan with the URL value
Dirk Mueller2024-06-17 05:57:46 +00:00
daef93c4a2
Accepting request 1171537 from devel:languages:python
Ana Guerrero2024-05-03 17:46:07 +00:00
cb9ab4a50a
- update to 2.19.4: * HTTPError can show up when you plan with the URL value * #186 - explain how to maps arguments * #188 - url now uses strings - as it should! * #190 - remove Python 3.5 support because of f-string * Add version 3.0 code and pinning info to README * more api endpoints * now that AI methods are in library - no need for CLOUDFLARE_API_EXTRAS code more api endpoints * remove f-string for Python <3.6 compatibility * added documentation urls, etc for pypi * finally removed the VOID calls, added /ai/run endpoints * still testing docs * start of longstanding need for documentation, update of copyright string * moved all requests code/exceptions into network where it belongs, import cleanup, exception handling cleanup * handle python < 3.10 to get utc time correctly * document cli4 having --header flag * cli4 has --header flag, plus http_headers needed some more syntax checking * added Python 3.5 note * remove excessive import * improved date/time rfc/iso code, lint fixes
Dirk Mueller2024-05-03 07:33:47 +00:00
c81375e3df
Accepting request 1165873 from devel:languages:python
Ana Guerrero2024-04-07 20:11:46 +00:00
627981e428
- update to 2.19.2: * http_headers documentation * fix tag name creation * added http_headers * solidfied the Python3 only mindset * brought man page up to date * create dummy loa document on-the-fly with very-basic pdf content - update to 2.19.0: * CHANGELOG.md pushed to * typo introduced before * purge_cache test - was chasing a different bug
Dirk Mueller2024-04-06 19:28:49 +00:00
f576c6fc70
Accepting request 1142769 from devel:languages:python
Ana Guerrero2024-01-30 17:26:48 +00:00
779fdcfeb2
- update to 2.17.0: * handle case where zone and account disallow load balancing * make 4xx error handling more generic * testing load balancers becuase they return 412 HTTP errors * debug messages line lenght needs to be longer so that error return messages are shown clearly * issue-181 HTTP response code 412 not handled * handle 404 errors with invalid API error structure * test get/put/patch/delete and post with no data - all expected return error * now testing api calls with four id values * now testing api calls with three id values * improve error message responses for 400-405 http reponses code they now decode
Dirk Mueller2024-01-30 12:10:36 +00:00
94aefb72d7
Accepting request 1137644 from devel:languages:python
Ana Guerrero2024-01-09 19:49:51 +00:00
63fe171e9a
- update to 2.16.0: * added CloudFlare/tests as a package - a better place to keep tests * return http code 200 and more 2xx now accepted, check for decode() errors * confine account to first one * testing pdf uploading and downloading * cleanup to show correct sequence of firewall and filter creation and deletion * added workers create and delete * moved /tests to /CloudFlare/tests api_decode_from_web.py as the old api.cloudflare.com website has gone away * OpenAPI code now returns clean errors and version number. * openapi url now in code where it belongs, args checked for type str, logging messgaes for various errors, http error code 400 & 429 handled * --openapi call now with optional argument as url is built into code * all tests now similar structure, callable from command line, debug on by default for command line calls * move OPENAPI_URL into code where it belongs * only create one logger - longstanding issue solved * added openapi_url config - rarely used outside of development * deal with /certificates case - which is unique * do not run tests if nothing has changed * make zone choice random, add delay for import as it is rate limited * remove excess code * moved to use tempfile.TemporaryFile so more portable over many systems
Dirk Mueller2024-01-08 21:04:35 +00:00
cedd5e207f
Accepting request 1133820 from devel:languages:python
Ana Guerrero2023-12-18 21:56:33 +00:00
3e0a538add
- update to 2.14.3: * /live added - but does not response yet * handle {account-identifier} with a dash vs underscore.
Dirk Mueller2023-12-18 09:30:25 +00:00
174cbc2b90
Accepting request 1129789 from devel:languages:python
Ana Guerrero2023-11-30 21:00:37 +00:00
b10dcae365
- update to 2.14.2: * added AI info * account name via -a flag now. should not be needed * stable diffusion example * move config info into code * first pass a new AI API calls * cleanup of usage, added more flag descriptions * cleanup of usage and getops values - now consistent * timeout values now work from config or api call, added support for image binary results, fixed logging if binary * handle raw byte output either via --image flag or if return from api is bytes * more api endpoints * added ips and issue114 tests * add importlib_resources info for older Python versions
Dirk Mueller2023-11-29 12:12:08 +00:00
6b831109f9
Accepting request 1115792 from devel:languages:python
Ana Guerrero2023-10-05 18:05:03 +00:00
ddd27b7a59
- update to 2.12.4: * added ips and issue114 tests * add importlib_resources info for older Python versions * more api endpoints * more twine tweaks * Added cli4 -e option to display example file path names * Add global_request_timeout and max_request_retries configuration options. Set default request timeout to 5s. Add basic tests instantiating Cloudflare.Cloudflare * more api endpoints * Make RegEx string a raw string literal * more api endpoints * update examples and README to use == for numberic values * more api endpoints * remove --api option and leave --openapi in place * handle quoted strings * handle multipart/form-data correctly for more than one file and with params/data * python keywords not handled correctly at command level * fix: remove future dependency and imports * added after openapi review * added deprecated processing, now shows version * update examples and README to use == for numberic values For full changelog see: * moved network functions into their own file - part of splitting up a large file - Add alternative for new manpage.
Dirk Mueller2023-10-05 09:49:31 +00:00
430d85c3e8
Accepting request 1108969 from devel:languages:python
Ana Guerrero2023-09-06 16:56:42 +00:00
2abcfdc932
- Switch to pyproject macros. - Stop using greedy globs in %files. - Drop unneeded {Build,}Requires on future.
Steve Kowalik2023-09-05 03:13:39 +00:00
3a1dfee130
Accepting request 1108926 from devel:languages:python
Ana Guerrero2023-09-04 20:54:04 +00:00
49ea58969f
- update to 2.11.7: * more api endpoints * update examples and README to use == for numberic values
Dirk Mueller2023-09-04 15:57:19 +00:00
802380833d
- update to 2.11.6: * handle multipart/form-data correctly for more than one file and with params/data * keywords not handled correctly at command level * added after openapi review * added deprecated processing, now shows version
Dirk Mueller2023-07-11 14:08:02 +00:00
ff715e16db
- update to 2.8.15: * added cursor example * zones/rulesets added * Removing excess trailing parenthesis * first pass at adding travis CI * zones/waiting_rooms, accounts/diagnostics, and more * configparser added it haste, but not needed - oops! * /zones/:id/access/... * configparser missing - oops! * cleaner and easier way to find missing api calls - this changes --dump/--api for the better * /zones/:id/access/apps/policies - fixed along with a bunch more similar typos * added more profile info * revoke-tokens -> revoke_tokens * updated and included AMP RealURL/Signed Exchange API * now with curl style debug - i.e. matches api information page * now with curl style debug - i.e. matches api information page * now with access_requests as underscore * make sure verbose, etc is always used * dashes vs underscores - finally tamed! * /zones/:id/access/apps/:id/revoke-tokens - added * improve deprecated code - add dates, check expire, improve parse of api webpage * added support for dashes/underscores in commands and python calls - kinda overdue * cleanup of logic around uuid match. added support for dashes/underscores in commands * /zones/:id/access/apps/revoke-tokens - removed as depricated * removed deprecated /organizations and /user/virtual_dns api * Added base_url to config and env variables * accounts/:id/rules/lists/bulk_operations/:operation_id - syntax fixed * Added working GraphQL examples * improved debug for jSON based data/params * rules,access/logs,access/apps,etc added
Dirk Mueller2022-01-23 16:45:58 +00:00