Skip to main content

GitHub city ranking creator

Project description

# GitHubCity

[![Build Status](https://travis-ci.org/iblancasa/GitHubCity.svg?branch=master)](https://travis-ci.org/iblancasa/GitHubCity)
[![GitHub license](https://img.shields.io/github/license/iblancasa/GitHubCity.svg)](https://github.com/iblancasa/GitHubCity)[![Coverage Status](https://coveralls.io/repos/iblancasa/GitHubCity/badge.svg?branch=master&service=github)](https://coveralls.io/github/iblancasa/GitHubCity?branch=master)

## What is this?
This is a small library which gets all GitHub users given a city. Original idea is [Top-GitHub-Users-Data](https://github.com/JJ/top-github-users-data) by [@JJ](https://github.com/JJ), an adaptation of [top-github-users](https://github.com/paulmillr/top-github-users) from [@paulmillr](https://github.com/paulmillr/).

## What I can do with this?
Now, you only can get all user names from a city (with a city in the location field). In future, this will be an amazing library.

## What I need to run this?
You will need to install Python 3. Python 2 is not supported. I recommend you [install Anaconda](https://www.continuum.io/).

In addition, you will need to get ID and Secret from a GitHub application. [You can register your own application here!](https://github.com/settings/applications/new).

#### Dependences
You have a ``requeriments.txt`` file. Install all dependences with ``pip install -r requeriments.txt``. You can use too "setup.py".


## Getting started
#### Basic example
```python
nameCity = "Granada"
idGH = "asdadfs5ds8sdfsdf8c" #GitHub ID
secretGH = "asdad45asfsdf8vdfg8sdfgv" #Github Secret

city = GitHubCity(idGH, secretGH, config=None,locations=["Granada", "Graná"], city="Granada",
excludedUsers=["noninaperson"], excludedLocations=["México"], debug=True)

city.getCityUsers()
city.
```

#### Configuration file

```json
{
"excludedLocations": [
"Granada"
],
"excludedUsers": [
"peter"
],
"intervals": [
[
"2008-01-01",
"2015-12-24"
]
],
"last_date": "2015-12-24",
"locations": [
"Granada"
],
"name": "Granada"
}
```



### The MIT License (MIT)
Copyright (c) 2015 Israel Blancas @iblancasa (http://iblancasa.com/)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

githubcity-0.01.03.tar.gz (8.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page