semvec/pypi-packages huggingface dataset:
github-crawler 0.0.6
A web spider to crawl public github repositories
Requires Python: >=3.6

# Github Crawler

```
A web spider to crawl public github repositories
```

Built with ❤︎ and :coffee: by  [Karthik Hosur](https://github.com/karthikhosur)

---
```
A web spider to crawl public github repositories to collect data of github user profiles,repositories and user social counts for educational purpose only. The project was earlier built to collect data from github for academic data analysis project.
```

# Features

- Extract User Social Status 
- Extract Repository Names
- Extract User Activity
- Extract Repository Social Information
- Extract Repository Data

# Installation

- You can install this package using

```bash
pip install github-crawler
```

# Usage

### Extract the profile information of a github user

- Import it in your Python project

```python
from github_crawler import user_profile

github_crawler.user_profile("karthikhosur") # Use the username of the user
```


### Result

The module would return a dictionary with result as follows:

```
{'followers': 2,
 'following': 4,
 'stars': 5,
 'repositories': ['/karthikhosur/Github-Crawler',
  '/karthikhosur/FairCV',
  '/karthikhosur/Stop-Words-Remover-API',
  '/karthikhosur/BlogsParser-API',
```


### Extract a Repository information 

- Import it in your Python project

```python
from github_crawler import repo_info

github_crawler.repo_info("/karthikhosur/Github-Crawler")# Use the username with the repository name in the format given

```

### Result

The module would return a dictionary with result as follows:

```
{'watchers': 1, 'stargazers': 1, 'forks': 1}
```
roverqaz-simple-api 0.1.9
A simple api package
Requires Python: >=3.6

## Simple python api using flask and sqlalchemy
### Create/update with PUT 
Description: Saves/updates the given user's name and date of birth in the database. 
Request: PUT /hello/<username> {“dateOfBirth": "YYYY-MM-DD" }
Response: 204 No Content
 
**Note:**
<usename> must contains only letters. 
YYYY-MM-DD must be a date before the today date. 

### See message with GET
Description: Returns hello birthday message for the given user 
Request: Get /hello/<username> 
Response: 200 OK 

**Response Examples: **
A. If username's birthday is in N days: { "message": "Hello, <username>! Your birthday is in N day(s)" } 
B. If username's birthday is today: { "message": "Hello, <username>! Happy birthday!" } 
### APP variables
Application listens on localhost:5000 by default, but you can set environment variables
```
export APP_HOST=someadress
export APP_PORT=8080
```

### APP dependencies
**Application uses postgresql and need following environment values:**
```
export SQLALCHEMY_DATABASE_URI="postgresql://user:somestrongpassword@localhost:5432/users"
```

### Starting application
**To start application type:**
```
python -m roverqaz_simple_api
```
**Also you can install application with pip:**
```
pip install --upgrade roverqaz_simple_api
python -m roverqaz_simple_api
```
### Unit tests
**To run unit tests enter:**
```
python tests/test.py
```
**Note: maybe you will need enter**
```
export PYTHONPATH=$(pwd) for running tests
```

**Tests includes for steps**
 - put unittest user with birtdate on 31-12-{now.year-1}
 - gets unittest user and checks response message
 - updates unittest user's birtdate to today
 - gets unittest user and checks response message
 
### Package on PyPi
See [roverqaz-simple-api](https://pypi.org/project/roverqaz-simple-api/)