cdown / aur Goto Github PK
View Code? Open in Web Editor NEWArch User Repository API interface.
License: Other
Arch User Repository API interface.
License: Other
Hello,
first of all, thanks for this neat package! I wish it would return the different Depends
fields on a aur.info('package')
call. These fields will be optionally returned via the AUR API:
curl "https://aur.archlinux.org/rpc/?v=5&type=info&arg=cower" -s | jq
{
"version": 5,
"type": "multiinfo",
"resultcount": 1,
"results": [
{
"ID": 404289,
"Name": "cower",
"PackageBaseID": 44921,
"PackageBase": "cower",
"Version": "17-2",
"Description": "A simple AUR agent with a pretentious name",
"URL": "http://github.com/falconindy/cower",
"NumVotes": 868,
"Popularity": 37.003249,
"OutOfDate": null,
"Maintainer": "falconindy",
"FirstSubmitted": 1293676237,
"LastModified": 1493044041,
"URLPath": "/cgit/aur.git/snapshot/cower.tar.gz",
"Depends": [
"curl",
"pacman",
"yajl"
],
"MakeDepends": [
"perl"
],
"License": [
"MIT"
],
"Keywords": [
"aur"
]
}
]
}
Do you intend on adding this feature? Would you like me to help you on this? My python knowledge is rather limited though.
When currently using aur.search, the query only leads to this response
{'error': 'Please specify an API version.', 'resultcount': 0, 'results': [], 'type': 'error', 'version': None}
v5 was released with AUR v4.2.0 on February 15, 2016, we should update.
This can be done using _fields
In python 3.4, a requests.Response
object doesn't provide a read
-Method (see here). Thus, every call of json.load
on such an object fails, raising an AttributeError:
>>> aur.msearch("pheerai")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.4/site-packages/aur/query.py", line 32, in msearch
return _generic_search(user, "msearch")
File "/usr/lib/python3.4/site-packages/aur/query.py", line 89, in _generic_search
res_data = _query_api(query, query_type, multi)
File "/usr/lib/python3.4/site-packages/aur/query.py", line 111, in _query_api
res_data = json.load(res_handle)
File "/usr/lib/python3.4/json/__init__.py", line 265, in load
return loads(fp.read(),
AttributeError: 'Response' object has no attribute 'read'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.