Gitlog is a python library to work with @github logs. 📈
Project description
Gitlog
Gitlog is a python library for working with @Github users' logs and hidden details. you can use it in any python project using pip install gitlog
Overview
Gitlog is a python library which helps you log users' followers, followings, repos, and user hidden details.
have you ever wanted to see who is in your nonfollower
list? oh is it hard for you to look all over your followings to find out? well good news! gitlog gonna help you in not only that but also in for example if you want to show your repos
on your blog and etc.
Usage
In the following paragraphs, I am going to describe how you can get and use gitlog
for your own projects and code.
Getting it
To download gitlog
, either fork this github repo or simply use Pypi via pip.
$ pip install gitlog
Using it
gitlog
was programmed with ease-of-use in mind. First, import User from gitlog.
for more exact usage documents you can see the example files here
from gitlog import User
then you can use bassed on what you need:
- to get your github or someone else github's
general information
:
>>> user = User('amir-shamsi', terminal_logs=True) # make "terminal_logs" True if you want to see the info loading logs
# access the user information like this -->
>>> user.username
# amir-shamsi
>>> user.fullname
# Amir Shamsi
>>> user.id
# 59437623
>>> user.profile_url
# https://api.github.com/users/Amir-Shamsi
>>> user.avatar_url
# https://avatars.githubusercontent.com/u/59437623?v=4
>>> user.get_created_date()
# 2020-01-02 10:06:09
>>> user.get_bio()
# Computer engineering student (at Shiraz UniversityƒÅø´©Å) with 2+ years of work experience | ItÔÇÖs going to be
# interestin to see how society deals with syntheticsƒîâ
>>> user.get_location()
# Earth
# ...
- to get your github or someone else github's
repositories information
:
>>> user = User('amir-shamsi', terminal_logs=True) # make "terminal_logs" True if you want to see the info loading logs
>>> user.get_repos(count=2) # set a count for get the the exact amount of repositories default is 100
# [{
# 'name': 'Amir-Shamsi',
# 'description': 'My GitHub Profile README ƒÖé'
# },
# {
# 'name': 'CleaningBot-partially-observable',
# 'description': 'cleaning agent where the environment is partially observable'
# }]
- to get your github or someone else github's
followings information
:
>>> user = User('amir-shamsi', terminal_logs=True) # make "terminal_logs" True if you want to see the info loading logs
>>> user.get_followings_count() # get user's followings count
>>> followings = user.get_followings(count=10) # set a count for get the exact amount of followings as a list
# default is 1000
- to get your github or someone else github's
followers information
:
>>> user = User('amir-shamsi', terminal_logs=True) # make "terminal_logs" True if you want to see the info loading logs
>>> user.get_followers_count() # get user's followers count
>>> followers = user.get_followers(count=10) # set a count for get the the exact amount of followers as a list
# default is 1000
- to get your github or someone else github's
non-followers information
:
>>> user = User('amir-shamsi', terminal_logs=True) # make "terminal_logs" True if you want to see the info loading logs
>>> non_followers = user.get_non_followers(count=10) # set a count for get the exact amount of non-followers as a list
# default is 1000
- to get your github or someone else github's
non-followings information
:
>>> user = User('amir-shamsi', terminal_logs=True) # make "terminal_logs" True if you want to see the info loading logs
>>> non_followings = user.get_non_followings(count=10) # set a count for get the exact amount of non-followings as a
# list default is 1000
Support
Supported versions of python for this library are as follow:
License
This project is under MIT license read it here:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Gitlog-0.1.0.tar.gz
.
File metadata
- Download URL: Gitlog-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40073facaaa8937872060445263b975aa79fc52d3d9618168b43e7a4c5f9e907 |
|
MD5 | 29fd4ea9af6f4c29ddf49badd8ee510c |
|
BLAKE2b-256 | 671f073d2bac291e325beda0ed22cb8cda2e3c02d0bc18751595994f86ea66e2 |
File details
Details for the file Gitlog-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: Gitlog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2df7641e3a06c0257514fd6da641f31aaa8c1b4fe327a4f10f5d6d8965ee5df |
|
MD5 | 391160bfdaccbb736bd1648773b91fbd |
|
BLAKE2b-256 | 62989bdb59786b75f8d9e93c7abe6489e70f03db271f2a0972f010483d7a35b1 |