Skip to main content

Gitlog

gitlog

Python version BSD Licence Project Initiator Repo Size Downloads PyPI version shields.io GitHub Workflow Status

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:

  1. 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
# ...
  1. 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'
#  }]
  1. 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
  1. 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
  1. 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
  1. 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.

Release files for Gitlog 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Gitlog 0.1.0
File Size Uploaded
Gitlog-0.1.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Gitlog 0.1.0
File Interpreter ABI Platform
Gitlog-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.0 kB

Release files / Gitlog-0.1.0.tar.gz

Download URL Gitlog-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
40073facaaa8937872060445263b975aa79fc52d3d9618168b43e7a4c5f9e907
BLAKE2b-256 checksum
How to use checksums
671f073d2bac291e325beda0ed22cb8cda2e3c02d0bc18751595994f86ea66e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Release files / Gitlog-0.1.0-py3-none-any.whl

Download URL Gitlog-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2df7641e3a06c0257514fd6da641f31aaa8c1b4fe327a4f10f5d6d8965ee5df
BLAKE2b-256 checksum
How to use checksums
62989bdb59786b75f8d9e93c7abe6489e70f03db271f2a0972f010483d7a35b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page