Comments (4)
Hey, good catch!
The module contains a class, that works as the Finder/Loader. Finders/Loaders are called Importers. So, it's the HttpImporter
class.
Is there a reason you believe this will be useful, other than an aesthetic/syntax addition. Is there a use-case that demands such syntax?
from httpimport.
Yes. python is one of the best tools for analysis and this module has actually made it limitless.
If we can load a remoteA class as an objectA and load from remoteB as objectB . it will ease analytical use cases. For instance:
a = httpimport(remoteA.com).import(foo).compute()
b = httpimport(remoteB.com).import(bar).get()
print(a(b))
rypc module uses this system like most remote working modules, in that case you can keep conn1, conn2, connN etc
But rypc does not satisfy the use case for httpimport.
from httpimport.
any hope for this feature ?
from httpimport.
The feature from PR (#7) has been cooked and implemented in master
:
Docs:
https://github.com/operatorequals/httpimport/blob/master/README.md#the-load-function-as-of-0510
Available in last release 0.5.10
through PyPI as well.
Thanks a lot!
from httpimport.
Related Issues (20)
- I encountered the following error when using the prompt HOT 1
- Support packages with shared object files HOT 2
- New version 0.9.2 breaks loading of joblib pickled model HOT 5
- Relative Path Importing/incorrect import package HOT 2
- Add support for module import directly from PyPI HOT 1
- Problem in Google Colab HOT 4
- Support Gitea Service
- Code to import from gist now breaks with AttributeError: 'list' object has no attribute 'endswith' HOT 5
- attribute error module 'passman' has no attribute 'list_profiles' HOT 2
- Support for Gitlab private repos HOT 9
- import public github HOT 4
- How do I import from private github repo? HOT 3
- can't access private repo from github HOT 5
- AttributeError - unlcear how to import a Class from a module HOT 6
- Not supported from package.module import class HOT 9
- PyPIImporter should be able to use proxy
- Python 3.12 Support HOT 3
- Load a python script that contains a main function HOT 13
- Importing libraries with different installation name HOT 3
- I can't get it to work with several tar.gz. packages HOT 2
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 httpimport.