Coder Social home page Coder Social logo

Comments (4)

namespacestd0 avatar namespacestd0 commented on August 22, 2024

@newgene May I ask if the space between the specified user_agent string example is left intentionally? For instance, when you mentioned "biothings_client.py/ mygene", did you mean "biothings_client.py/mygene"? Double checking this because it seems to contradict with common practice I've observed.

from biothings_client.py.

namespacestd0 avatar namespacestd0 commented on August 22, 2024

Basing on a common pattern:

User-Agent: <product>/<version> (<system-information>) <platform> (<platform-details>)

I propose:

biothings_client.py/<release> (<os>; python:<version>; <python-packages>) <api>/<version> (<server-info>) user_query/<commit-hash>

With all fields included, it could look like:

biothings_client.py/0.2.0 (Linux x86_64; python:3.7.1; requests:2.3.0) mygene/v3 (es:7.1) user_query/825e27e

We can start with including the most useful fields, which looks like:

biothings_client.py/0.2.0 (python:3.7.1) mygene/v3

This way, we can be better informed:

  • if continuing support with lower python versions is necessary
  • which service is more popular to be accessed with this python client
    ...

from biothings_client.py.

newgene avatar newgene commented on August 22, 2024

Great! Let's starts with this:

biothings_client.py/0.2.0 (python:3.7.1: requests:2.3.0)

for biothings_client.py direct calls.

biothings_client.py/0.2.0 (python:3.7.1: requests:2.3.0)  mygene.py/3.1.0

for calling from mygene.py (same for myvariant.py)

from biothings_client.py.

namespacestd0 avatar namespacestd0 commented on August 22, 2024

Implemented in 092e3ca
biothings/myvariant.py@79e4fc7
biothings/mygene.py@c5cedc9
Existing automated tests passed.

from biothings_client.py.

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.