caltechlibrary / commonpy Goto Github PK
View Code? Open in Web Editor NEWCollection of common Python utility functions and classes used in other Caltech Library programs.
License: Other
Collection of common Python utility functions and classes used in other Caltech Library programs.
License: Other
With just a method and a url for net(), there is no result and a ValueError. I am able to get a result with cURL.
from commonpy.network_utils import net
print(net('get', 'https://caltech.tind.io/search?ln=en&p=barcode%3A+35047019492099&of=xm'))
result:
(None, ValueError('httpx.Timeout must either include a default, or set all four parameters explicitly.'))
cURL can return the expected XML:
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "https://caltech.tind.io/search?ln=en&p=barcode%3A+35047019492099&of=xm"
The new download code in network_utils
.py has some repetition of status testing code. We should keep it DRY and abstract that out into a common function used by net
.
config_interrupt
only supports handling a single signal. It would be useful to make it handle more. See this Stack Overflow answer for some ideas.
This repo now has an issue template, but not a feature request or pull request template.
I'm using this bug report form to report this as an issue, although this is actually a feature request and not a bug per se.
This package sorely needs a proper documentation site, at least as a github.io site if not ReadTheDocs.
The network utilities all assume IPv4 addresses and break badly for IPv6.
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.