semvec/pypi-packages huggingface dataset:
pysports 1.0.2
PySports: Python module to access cricket scores and more.
License: MIT

___
##PySports : Python module to access cricket scores and more.

**PySports** is a **Reusable python app** which provides a features to access live scores, upcoming matches, historical matches and more. PySports is rich features and powerful enough, You can start with PySports without installation of any 3rd party packages.
___


## Installation :
You can install **PySports** from PyPI using **pip**.

``` pip install pysports ```
___


## Configuration :
1. In order to use **PySports** it required an **API Key**, You can generate the API Key from **[CricAPI.com](https://www.cricapi.com/)**.

2. Open your **Text Editor/Python CLI** and write the **following code**.
```python
from pysports.cricapi import CricAPI

cric = CricAPI("PASTE_YOUR_CRICAPI_API_KEY_HERE")
```

3. Access **Live Score** of any matches by **PySports**.
>> To access live score of any matches it required the unique_id/match_id of the match.
```python
cric.live_score("INT_UNIQUE_ID")
```

4. Access the list of **Upcoming Matches** by **PySports**.
>> To access the list of upcoming matches write the following code.
```python
cric.upcoming_matches()
```

5. Access the list of **Historical Matches** by **PySports**.
>> To access the list of Historical matches write the following code.
```python
cric.historical_matches()
```

6. Access the **Scorecard/Summary** of the matches by **PySports**.
>> To access the scorecard/summary of the matches it required the unique_id/match_id of the match, Write the following code.
```python
cric.match_summary("INT_UNIQUE_ID")
```

7. Access the **Detail** of **Players** by **PySports**.
>> To access the details/information of the players it required the pid/player_id of the players, Write the following code.
```python
cric.about_player("INT_PLAYER_ID")
```
___
djangocric 1.0.1
Djangocric: Django Reusable app to access live scores and more.
License: MIT

___
## Djangocric: Django Reusable app to access live cricket scores and more.

**Djangocric** is a **Reusable Django app** which provides access to live cricket scores, match summary, historical matches data, upcoming matches data, player details and many more.
___

## Installation :
***You can install ```Djangocric``` package from PyPI using ```pip```.***
``` pip install djangocric ```
___

## Configuration :
***1. Open the ```settings.py``` module of your project, And put ```djangocric``` into the ```INSTALLED_APPS```.***
```python
INSTALLED_APPS = (
    'djangocric',
)
```

***2. Open the ```urls.py``` file of your project, And include ```djangocric``` URLs.***
```python
urlpatterns = [
    re_path(r'^cric/', include('djangocric.urls')),
]
```

***3. Setup the Templates for djangocric.***
>> ***Important Note***: Djangocric App is a part of Djangoengine project. And if you want to access UI part of Djangocric App, You need to configure some Reusable/global templates to your django project or you can create your own templates, It's very easy.
```python
TEMPLATES = [
    'DIRS': [os.path.join(BASE_DIR, 'templates'),],
]
```

Create the ```templates``` folder inside ```BASE_DIR``` and Then create ```djangoadmin``` folders inside the templates folder.
Then [download](https://www.dropbox.com/sh/na4tzfewub5mhe5/AABmyPHZ3KFZSpC7lH9Uvl5Ya?dl=0) the djangoadmin templates and put them inside the ```djangoadmin``` folder.

***4. Static files configuration.***
Open your ```settings.py``` module and Configure Static files and media files or you can can use your own configuration.
```python
STATIC_URL = '/static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static-local'),)
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static-root', 'static')

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static-root', 'media')
```

Create the ```static-local``` folder inside ```BASE_DIR```, Then create ```djangoadmin``` folders inside that ```static-local``` folder.
And also [download](https://www.dropbox.com/sh/1jjul5c7kauas3o/AACeEf_OqpnzTe_iqK-r3SNMa?dl=0) the djangoadmin static files and put them inside the ```djangoadmin``` folder.
___

## Complete the Djangocric setup by running the following command in sequence.
```python
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py runserver
```
___