Skip to content

Commit

Permalink
Merge pull request #209 from Conor0Callaghan/dev
Browse files Browse the repository at this point in the history
#208 Updating readme to add badge
  • Loading branch information
azharichenko authored Dec 23, 2024
2 parents a581eec + 9220c8e commit cbe748b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@
![Build Status](https://img.shields.io/github/actions/workflow/status/pittcsc/PittAPI/autotest.yml?branch=dev)
![License](https://img.shields.io/badge/license-GPLv2-blue.svg)
![Python Version](https://img.shields.io/badge/python-%3E%3D%203.10-green.svg)
[![Pypi Version](https://img.shields.io/pypi/v/pittapi.svg)](https://pypi.org/project/PittAPI/)

The Pitt API is an unofficial Python API made by Ritwik Gupta at the University of Pittsburgh in an effort to get more open data from Pitt.

## Installation

The Pitt API can be installed using the Python package manager `pip`. To make your development easier, you can run the pip commands in a virtual environment.

1. Install ``pipenv`` using the [instructions](https://pipenv.pypa.io/en/latest/installation.html) for your operating system, pipenv is a tool which manages your python virtual environments for you.
2. Run the commands ``pipenv sync --dev`` and ``pipenv shell`` to create and setup the virtual environment.
3. Install the PittAPI in the new virtual environment ``pip install PittAPI``, see the usage guide below for further information.

## Usage examples

```python
Expand Down Expand Up @@ -58,11 +67,6 @@ medium_dict = dining.get_locations()
hours = dining.get_location_hours("The Eatery", datetime.datetime(2024, 4, 12))
```

## Local Setup
Install Python 3.13 and ``pipenv``.

Run ``pipenv install`` and ``pipenv shell`` to create and setup the virtual environment.

## Contributing

Read our [contributing guidelines](/CONTRIBUTING.md) to learn how to contribute to the Pitt API.
Expand Down

0 comments on commit cbe748b

Please sign in to comment.