Comments (2)
@mkistler Seems like it's really notebook-centric (which works great) given it's nbdev. You've probably done this already, but I think this should give you some (relatively readable) text across the api from the REPL:
>>> from ghapi.all import GhApi
>>> api = GhApi()
>>> print(api._repr_markdown_())
- [actions](https://docs.github.com/en/free-pro-team@latest/rest/reference/actions)
- [activity](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity)
- [apps](https://docs.github.com/en/free-pro-team@latest/rest/reference/apps)
- [billing](https://docs.github.com/en/free-pro-team@latest/rest/reference/billing)
...
>>> print(api.teams._repr_markdown_())
- [teams.list_idp_groups_for_org](https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization)(org, per_page, page): *List IdP groups for an organization*
- [teams.list](https://docs.github.com/v3/teams/#list-teams)(org, per_page, page): *List teams*
- [teams.create](https://docs.github.com/v3/teams/#create-a-team)(org, name, description, maintainers, repo_names, privacy, permission, parent_team_id): *Create a team*
- [teams.get_by_name](https://docs.github.com/v3/teams/#get-a-team-by-name)(org, team_slug): *Get a team by name*
- [teams.update_in_org](https://docs.github.com/v3/teams/#update-a-team)(org, team_slug, name, description, privacy, permission, parent_team_id): *Update a team*
- [teams.delete_in_org](https://docs.github.com/v3/teams/#delete-a-team)(org, team_slug): *Delete a team*
This model also makes it hard to get good IDE support (PyCharm), too. 😞
from ghapi.
You can get completion in the CLI as well as long as you follow these instructions
You can also get tab completion in notebooks or in a iPython shell. But not a regular python shell. You need a coding environment that is able to introspect live objects, as the tab completion is dynamic :)
from ghapi.
Related Issues (20)
- api.repos.create_fork not finding repo but curl command working
- ProjectsV2? HOT 2
- pages does not work for list_packages_for_organization HOT 1
- UnicodeDecodeError on repos.download_tarball_archive HOT 1
- Set outputs is currently using syntax which is due to be deprecated
- feature: get dependabot alerts for enterprise/org
- Self documenting api object does not work as described in docs HOT 1
- Is this project still maintained? HOT 4
- v1.0.4 HOT 3
- Pagination Broke. ghapi 1.0.3 HOT 1
- Document leaky exceptions
- website documentation wrong for secret_scanning & dependabot
- Provide static API documentation HOT 1
- Missing orgs.list_saml_sso_authorizations and other enterprise endpoints HOT 1
- SyntaxWarning: invalid escape sequence HOT 2
- Add ability to read token reported by `gh auth token` HOT 1
- Pagination does not work for api.search.code HOT 2
- Remove `pip` from dependencies HOT 2
- feature request: app authentication support
- How can I get the HTTP response status code after calling the APIs?
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 ghapi.