Giter VIP home page Giter VIP logo

gitem's People

Contributors

mschwager avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitem's Issues

TypeError: unhashable type: 'collections.OrderedDict'

Hello, when I launch the program like this:

gitem repository Mi-Al WiFi-autopwner

I got the error:

Traceback (most recent call last):
  File "/usr/bin/gitem", line 11, in <module>
    load_entry_point('gitem==0.8.1', 'console_scripts', 'gitem')()
  File "/usr/lib/python3.8/site-packages/gitem/__main__.py", line 285, in main
    dispatch[args.command](ghapi, outputter, **vars(args))
  File "/usr/lib/python3.8/site-packages/gitem/__main__.py", line 109, in repository
    ("Contributors", collections.OrderedDict([
TypeError: unhashable type: 'collections.OrderedDict'

I run it on Arch Linux.

Feature Request - Clone All Org Repos

Per the reddit thread: Would love to have the ability to clone every repo from an organization and also every repo belonging to every user of that organization.

problem with organization doesnt exist

when an organization cannot be found the following message appears

raceback (most recent call last):
File "/usr/local/bin/gitem", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/gitem/main.py", line 280, in main
dispatch[args.command](ghapi, **vars%28args%29)
File "/usr/local/lib/python2.7/dist-packages/gitem/main.py", line 30, in organization
organization
File "/usr/local/lib/python2.7/dist-packages/gitem/analytics.py", line 10, in get_organization_information
organization
File "/usr/local/lib/python2.7/dist-packages/gitem/api.py", line 197, in get_public_organization
result = self.json_call(method, endpoint, params)
File "/usr/local/lib/python2.7/dist-packages/gitem/api.py", line 99, in json_call
response = self.call(method, url, params)
File "/usr/local/lib/python2.7/dist-packages/gitem/api.py", line 87, in call
raise ApiCallException(response.status_code, response.json())
gitem.api.ApiCallException: 404: {"documentation_url": "https://developer.github.com/v3", "message": "Not Found"}

exit in format json

Hello,

how can I get the output of the command in json format because with the -t modifier gives error


gitem organization microsoft -t
usage: gitem [-h] [-o OAUTH2_TOKEN] [-v] [-p PROCESSES] [-t {stdout,json}]
{organization,repository,user} ...
gitem: error: unrecognized arguments: -t

gitem organization microsoft -t json
usage: gitem [-h] [-o OAUTH2_TOKEN] [-v] [-p PROCESSES] [-t {stdout,json}]
{organization,repository,user} ...
gitem: error: unrecognized arguments: -t json

Thanks and a greeting

ValueError: anon must be one of [1, 'true']

When running the example gitem repository facebook react, I get the following error:

Traceback (most recent call last):
  File "lib/gitem/__main__.py", line 301, in <module>
    main()
  File "lib/gitem/__main__.py", line 280, in main
    dispatch[args.command](ghapi, **vars(args))
  File "lib/gitem/__main__.py", line 110, in repository
    repository
  File "/home/dkasak/code/projects/gitem/lib/gitem/analytics.py", line 122, in get_repository_contributors
    repository
  File "/home/dkasak/code/projects/gitem/lib/gitem/api.py", line 280, in get_repository_contributors
    raise ValueError("anon must be one of {}".format(anon_values))
ValueError: anon must be one of [1, 'true']

Looking at the commit history, this bit of 72da801 looks wrong:

@@ -265,7 +275,9 @@ class Api(object):
 
         https://developer.github.com/v3/repos/#list-contributors
         """
-        assert anon in [1, "true", None]
+        anon_values = [1, "true"]
+        if anon not in anon_values and type is not None:
+            raise ValueError("anon must be one of {}".format(anon_values))

There's no type variable in that function and None is dropped in the transition from the assert to the new code.

request with oauth

Hello man! can you please tell me how to add oauth into your program?
I have "
gitem.api.ApiCallException: 401: {"message": "Bad credentials", "documentation_url": "https://developer.github.com/v3"}
"
Please give me an example of how to send requests with oauth

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.