Giter Site home page Giter Site logo

caltechlibrary / commonpy Goto Github PK

View Code? Open in Web Editor NEW
14.0 6.0 0.0 420 KB

Collection of common Python utility functions and classes used in other Caltech Library programs.

License: Other

Python 88.79% Makefile 11.21%
python python3 utility-classes utility-function python-functions file-utilities file-utils network-utilities data-utilities

commonpy's Issues

simple net usage has unexpected results

Describe the bug

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.

To Reproduce

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.'))

Environment (please complete the following information)

  • Operating system: macOS 10.15.7
  • Version of Python: 3.9.1

Additional context

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"

Add feature request & pull request templates

Describe the bug

This repo now has an issue template, but not a feature request or pull request template.

Additional context

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.

Do proper documentation

This package sorely needs a proper documentation site, at least as a github.io site if not ReadTheDocs.

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.