Giter Site home page Giter Site logo

prowlarr-py's Issues

No `py.typed` marker file in the package

Hi there,

I'm looking to use this library in one of my projects. I use type hinting extensively within it, and while the type hints for prowlarr-py seem to work properly when read using Pylance, Mypy complains it cannot read type hints from the package (and probably the other API packages) because there is no py.typed file, or stubs package.

Here is the resulting error when trying to run Mypy on a test file when the prowlarr-py package is installed:

import prowlarr

prowlarr.ApiClient()

Mypy output:

$ mypy test.py
test.py:1: error: Skipping analyzing "prowlarr": module is installed, but missing library stubs or py.typed marker  [import]
test.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

For more information on what the py.typed file does, refer to PEP-561.

Setting a timeout on the API client rather than individual API function calls

Hi there,

Is there a way to set a default _request_timeout on the ApiClient object, or perhaps the Configuration object that gets passed to it?

I'd like to set a standard timeout for all API requests I make, but from what I can see in the source and docs, the only way to set it right now is to pass _request_timeout=<timeout> for each request call.

This is a lot of work when making a lot of API calls so I was wondering if there was a simpler/more convenient way of doing it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.