Skip to content

Commit

Permalink
add: build files, installation script, build script
Browse files Browse the repository at this point in the history
  • Loading branch information
vijay-jaisankar committed Apr 27, 2022
1 parent e9c84e4 commit 0ceea6c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python -m build
python -m twine upload --repository pypi dist/*
Binary file added dist/trafficinterventions-1.0.0-py3-none-any.whl
Binary file not shown.
Binary file added dist/trafficinterventions-1.0.0.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = trafficinterventions
version = 0.0.3
version = 1.0.0
author = WSL, IIITB
author_email = [email protected]
description = Python Package to perform simple Traffic Interventions.
Expand Down
28 changes: 27 additions & 1 deletion src/trafficinterventions.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: trafficinterventions
Version: 0.0.3
Version: 1.0.0
Summary: Python Package to perform simple Traffic Interventions.
Home-page: https://github.com/WSL-IIITB/Traffic-Interventions
Author: WSL, IIITB
Expand All @@ -21,7 +21,33 @@ License-File: LICENSE
- `python -m pip install --upgrade pip`
- `pip install trafficinterventions xml`

---
## Documentation
All relevant files can be found [here](https://github.com/WSL-IIITB/Traffic-Interventions/tree/main/docs)

---

### Sample Usage : Edge Manipulation
```py
import trafficinterventions

ce = trafficinterventions.ChangeEdges.ChangeEdges(fileName="sample.xml")

# Sample Intervention
ce.disallowAppendTypes(["bus"], ["-100"], "new_file.xml")

```
---

### Sample Usage : Lane Manipulation
```py
import trafficinterventions

cl = trafficinterventions.ChangeLanes.ChangeLanes(fileName="sample.xml")

# Sample Intervention
ce.changePriorityLanes(["highway.cycleway"], 100, "new_file.xml")

```


0 comments on commit 0ceea6c

Please sign in to comment.