Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Architecture #166

Closed
jkbrzt opened this issue Sep 16, 2013 · 6 comments
Closed

Plugin Architecture #166

jkbrzt opened this issue Sep 16, 2013 · 6 comments
Assignees
Labels
enhancement New feature or enhancement planned Solution is being worked on

Comments

@jkbrzt
Copy link
Member

jkbrzt commented Sep 16, 2013

Work is being on a simple plugin architecture for HTTPie.

To begin with, it will support auth plugins that get a username/password pair and return a requests.auth.AuthBase subclass. Candidates for auth plugins:

@sigmavirus24
Copy link

I think you mean NTLM not NLTP =P

@jkbrzt
Copy link
Member Author

jkbrzt commented Sep 17, 2013

// @sigmavirus24 fixed :)

@jkbrzt
Copy link
Member Author

jkbrzt commented Sep 21, 2013

Done. Example auth plugin: https://github.com/jkbr/httpie-ntlm

@jkbrzt jkbrzt closed this as completed Sep 21, 2013
@sigmavirus24
Copy link

🤘 You rock @jkbr /cc @matt-hickford

@jkbrzt
Copy link
Member Author

jkbrzt commented Sep 22, 2013

httpie-oauth

@hickford
Copy link
Contributor

I installed from master branch head. Any ideas?

>http
Traceback (most recent call last):
  File "C:\Python27\Scripts\http-script.py", line 9, in <module>
    load_entry_point('httpie==0.7.0', 'console_scripts', 'http')()
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 2311, in load_entry_point
    return ep.load()
  File "C:\Python27\lib\site-packages\pkg_resources.py", line 2017, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "C:\Python27\lib\site-packages\httpie-0.7.0-py2.7.egg\httpie\__main__.py", line 6, in <module>
    from .core import main
  File "C:\Python27\lib\site-packages\httpie-0.7.0-py2.7.egg\httpie\core.py", line 22, in <module>
    from .client import get_response
  File "C:\Python27\lib\site-packages\httpie-0.7.0-py2.7.egg\httpie\client.py",
line 8, in <module>
    from . import sessions
  File "C:\Python27\lib\site-packages\httpie-0.7.0-py2.7.egg\httpie\sessions.py", line 12, in <module>
    from httpie.plugins import plugin_manager
ImportError: No module named plugins

I'm using Python 2.7 on Windows. For whatever reason, the plugins folder never got installed to Python's site-packages. I guess this is an issue with the setup.py

kevinburke pushed a commit to kevinburke/httpie that referenced this issue Dec 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement planned Solution is being worked on
Projects
None yet
Development

No branches or pull requests

3 participants