Giter Club home page Giter Club logo

Comments (3)

kolibril13 avatar kolibril13 commented on August 11, 2024 1

Ohh, this is amazing, thanks a lot!
It's working as expected on my machine.
If you want, I can even make a pull request and add this example to the readme.
And if so, would you make a hello_world gist from your account to which I can refer to as an URL?
I think that would make sense as you are as well the owner of this repo ;)

from httpimport.

operatorequals avatar operatorequals commented on August 11, 2024

Hello!
That's almost right.

>>> import httpimport
>>> with httpimport.remote_repo(['hello'],"https://gist.githubusercontent.com/kolibril13/fc84c6940a8aeab8071c5d54d4df3a7b/raw/bedba99860d301fdc20edac5291b52359a46d1e3/"):
...     import hello
... 
>>> hello
<module 'hello' from 'https://gist.githubusercontent.com/kolibril13/fc84c6940a8aeab8071c5d54d4df3a7b/raw/53227fbc75d0c1bfdda41a786ae99fa04f24b429//hello.py'>
>>> hello.hello()
Hello world

The initial ['hello'] list is for the finder to expect these packages/modules in the URL.

from httpimport.

operatorequals avatar operatorequals commented on August 11, 2024

I'm glad it works!

Please make the PR whenever you have time!
You can use this gist I made for this purpose:
https://gist.github.com/operatorequals/ee5049677e7bbc97af2941d1d3f04ace

from httpimport.

Related Issues (20)

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.