Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juanbindez/ohmslawapi
ohms API
https://github.com/juanbindez/ohmslawapi
api ohms-law
Last synced: about 1 month ago
JSON representation
ohms API
- Host: GitHub
- URL: https://github.com/juanbindez/ohmslawapi
- Owner: JuanBindez
- License: mit
- Created: 2024-05-19T01:23:21.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T02:37:08.000Z (7 months ago)
- Last Synced: 2024-05-22T03:11:05.650Z (7 months ago)
- Topics: api, ohms-law
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ohmslaw API
```python
import requestsSOURCE = 12
COMPONENT_VOLTS = 5.0url = f'127.0.0.1:5000/api/v1/f_resistor?source={SOURCE}&component_voltage={COMPONENT_VOLTS}'
response = requests.get(url)if response.status_code == 200:
data = response.json()
print(data)
else:
print(f'Error: {response.status_code}')```