Comments (4)
@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.
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.
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.
Implemented in 092e3ca
biothings/myvariant.py@79e4fc7
biothings/mygene.py@c5cedc9
Existing automated tests passed.
from biothings_client.py.
Related Issues (20)
- get_client('chem') not working HOT 3
- Use doc_type key in metadata to generate client without having to specific biothings_type HOT 5
- query terms split on space when passed to querymany as a list. HOT 1
- Not return DataFrame when both "fetch_all" and "as_dataframe" are set to be True HOT 1
- mygeneinfo finds a gene using `query` but not using `querymany' HOT 1
- No need to delay when requests were made from cache HOT 2
- MyGene client: .query with fields=list returns incomplete results HOT 3
- Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated HOT 1
- Specifying the fetch_all block size? HOT 2
- Use standard logging stream HOT 2
- requests.exceptions.HTTPError: 400 Client Error: Expect type list HOT 8
- fields parameter not working as intended HOT 6
- End positions of 'delins' variations
- update tests using drugbank ids HOT 1
- Outdated clinvar? HOT 3
- Add geneset as a supported built-in client type HOT 1
- Handle more gracefully when the biothing_type value from metadata endpoint is a list HOT 1
- Faster implementation of `list_itemcnt` in `base.py` HOT 1
- Support query by CURIE IDs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biothings_client.py.