Comments (8)
You can login to GitHub using the python GitHub API https://github.com/PyGithub/PyGithub
from gitdir.
@SelfhostedPro Very interesting! I will have to take a look at the documentation to see it is able to get files from a branch or get the files of folder in a the given repo
from gitdir.
I have not tested this on private repos. But I think we would have to pass the credentials (username and password) with the requests in order for you to access the private repo. I will try find a way to make a way to let users login if it a private repo :)
from gitdir.
@sdelquin Do you know how to login to GitHub with Python? Im not able to do it for some reason.
from gitdir.
Not really :/
from gitdir.
@sdelquin I dont think private repos will work. Also, I dont plan to support private repos. 😿
from gitdir.
This is something we have to be aware of: https://developer.github.com/changes/2020-02-14-deprecating-password-auth/
from gitdir.
PyGithub enables you to use Access tokens so you don't need to worry about that deprecation.
from gitdir.
Related Issues (20)
- Color codes do not work on Windows HOT 1
- ConnectionRefusedError: [Errno 61] Connection refused HOT 1
- Getting error -> urllib.error.HTTPError: HTTP Error 403: Forbidden HOT 5
- urllib.error.HTTPError: HTTP Error 403: rate limit exceeded HOT 3
- Does it work on Windows? HOT 1
- Using package inside python script HOT 1
- download file storage directory error
- Does not work on Windows? HOT 2
- Folder is reconginzed as full repository HOT 1
- Use as a package from code HOT 1
- Regex Filter based downloads HOT 1
- Github master branch path begins at blob HOT 3
- Can't flatten and output_dir at same time
- Downloading a github folder into a specified directory HOT 1
- Can't download large amount of files from a folder
- `gitdir` overwrites files without confirmation
- FileNotFoundError: [Errno 2] No such file or directory: HOT 3
- Command line accessible HOT 9
- Update the PyPi with latest version HOT 1
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 gitdir.