Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpx #1508

Closed
wants to merge 28 commits into from
Closed

httpx #1508

wants to merge 28 commits into from

Commits on Feb 19, 2024

  1. inline client code

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    79a53ef View commit details
    Browse the repository at this point in the history
  2. get started

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    3019e68 View commit details
    Browse the repository at this point in the history
  3. inline webhooks

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    3d1478c View commit details
    Browse the repository at this point in the history
  4. move clients into runner, switch to httpx, move create_event_handler …

    …into runner
    
    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    8a7e53a View commit details
    Browse the repository at this point in the history
  5. add some comments

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    33f5881 View commit details
    Browse the repository at this point in the history
  6. more notes

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    4a70c13 View commit details
    Browse the repository at this point in the history
  7. rip out webhooks and most of files and put them in a new ClientManage…

    …r that handles most of everything. inline upload_files for that
    
    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    ba865b5 View commit details
    Browse the repository at this point in the history
  8. move create_event_handler into PredictionEventHandler.__init__

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    bec4705 View commit details
    Browse the repository at this point in the history
  9. fix one test

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    a0088b8 View commit details
    Browse the repository at this point in the history
  10. break out Path.validate into value_to_path and inline get_filename an…

    …d File.validate
    
    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    61295aa View commit details
    Browse the repository at this point in the history
  11. split out URLPath into BackwardsCompatibleDataURLTempFilePath and URL…

    …ThatCanBeConvertedToPath with the download part of URLFile inlined
    
    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    f6122d6 View commit details
    Browse the repository at this point in the history
  12. let's make DataURLTempFilePath also use convert and move value_to_pat…

    …h back to Path.validate
    
    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    82336e9 View commit details
    Browse the repository at this point in the history
  13. use httpx for downloading input urls and follow redirects

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    ae93634 View commit details
    Browse the repository at this point in the history
  14. take get_filename back out for tests

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    1423ed7 View commit details
    Browse the repository at this point in the history
  15. don't upload in http and delete cog/files.py

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    15eed27 View commit details
    Browse the repository at this point in the history
  16. drop should_cancel

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    5af4b08 View commit details
    Browse the repository at this point in the history
  17. prediction->request

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    8d510d7 View commit details
    Browse the repository at this point in the history
  18. split up predict/inner/prediction_ctx into enter_predict/exit_predict…

    …/prediction_ctx/inner_async_predict/predict/good_predict as one way to do it. however, exposing all of those for runner predict enter/coro exit still sucks, but this is still an improvement
    
    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    38fcba6 View commit details
    Browse the repository at this point in the history
  19. bigish change: inline predict_and_handle_errors

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    2d8a98a View commit details
    Browse the repository at this point in the history
  20. inline make_error_handler into setup

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    4998db9 View commit details
    Browse the repository at this point in the history
  21. move runner.setup into runner.Runner.setup

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    f9e4e19 View commit details
    Browse the repository at this point in the history
  22. add concurrency to config in go

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    567f06f View commit details
    Browse the repository at this point in the history
  23. try explicitly using prediction_ctx __enter__ and __exit__

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    848a9dc View commit details
    Browse the repository at this point in the history
  24. make runner setup more correct and marginally better

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    0445891 View commit details
    Browse the repository at this point in the history
  25. fix a few tests

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    7e124ce View commit details
    Browse the repository at this point in the history
  26. notes

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    539b2a3 View commit details
    Browse the repository at this point in the history
  27. wip ClientManager.convert

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    624ad7a View commit details
    Browse the repository at this point in the history
  28. relax setup argument requirement to str

    Signed-off-by: technillogue <technillogue@gmail.com>
    technillogue committed Feb 19, 2024
    Configuration menu
    Copy the full SHA
    94a050b View commit details
    Browse the repository at this point in the history