Giter Club home page Giter Club logo

Comments (6)

liampauling avatar liampauling commented on July 24, 2024

Going to fix the latter on 0.9.4, which will have your pull request as well (thanks)

The cert property currently makes things easier by assuming you have your certs in a folder so all you have to do is provide a directory instead.

from betfair.

fracek avatar fracek commented on July 24, 2024

I see. I tried it again but it seems to fail because my folder has crt, crs, key, and pem files in it. Also to point to the correct directory (../certs/) I need to pass certs, since BaseClient expects the path relative to the parent directory.

It's easy to work around (made a folder with just crt and key files, passed different path as certs), but I found it confusing.

Maybe you can add two kwargs to the constructor, certs and certs_dir. Certs would be a list or tuple like for requests, but if the users passes certs_dir then you lookup the certs in the directory and set the certs property to them. (I'm happy to send a PR for this)

from betfair.

fracek avatar fracek commented on July 24, 2024

I worked a possible solution in my fork. If you like it I can open a PR for it too.

from betfair.

liampauling avatar liampauling commented on July 24, 2024

You able to open a PR and I will have a look my side, thanks.

from betfair.

liampauling avatar liampauling commented on July 24, 2024

All working my side so have pushed 0.9.4 to master, thanks!

from betfair.

joelpob avatar joelpob commented on July 24, 2024

It might be worth explaining the certs vs. cert_files difference somewhere. I got confused with how the parameters are used (i.e. I was passing certs='certs/' instead of certs='parentdir/certs') and I was also confused with what type of certificate format is required (I was actually using .pem files, and not .key and .crt files).

Burned a good 20 minutes looking at the code to work this out. :)

from betfair.

Related Issues (20)

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.