📝add docs about so to install and develop this package standalone

This commit is contained in:
jgunstone
2024-02-29 16:37:19 +00:00
committed by Dion Moult
parent 37b15de3e4
commit 9509f07da8
+34
View File
@@ -1,3 +1,37 @@
# bsdd
A library to interact with the buildingSMART Data Dictionary (bSDD) API.
This packages is totally independent from other packages in IfcOpenShell and requires only a python installation to run.
## Installation
```bash
pip install git+https://git@github.com/jgunstone/ifcopenshell.git@make-bsdd-installable-and-add-tests#subdirectory=src/bsdd
# TODO ^^^ update the github domain if merged back to ifcopenshell
# check your installation
python
>>> from bsdd import Client
>>> client = Client()
>>> [l["uri"] for l in client.get_dictionary()["dictionaries"] if "4.3" in l["uri"]][0]
'https://identifier.buildingsmart.org/uri/buildingsmart/ifc/4.3'
```
## Develop
```bash
# create a fork in your domain
git clone git@github.com:<your-name>/IfcOpenShell.git
cd src/bsdd
# if you use vs code / pycharm, you can launch it from this folder
code .
# if you use conda/mamba. follow instructions below:
# otherwise setup a dev env in your preferred way.
mamba create -n bsdd-dev python pytest requests
mamba activate bsdd-dev
# run tests
pytest
```