https://github.com/aaronpeikert/default-data-example
https://github.com/aaronpeikert/default-data-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aaronpeikert/default-data-example
- Owner: aaronpeikert
- Created: 2025-02-27T16:07:06.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T17:26:07.000Z (3 months ago)
- Last Synced: 2025-02-27T23:10:56.473Z (3 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Default Data Example
## Getting Started
`data/` includes the mini example used in the policy.
addionally there is the `defaultdata.py` script which will check that everything in `data/` adhered to the default data standard.
```
chmod +x defaultdata.py
./defaultdata.py check
./defaultdata.py package
```* `check` will check the basic filestructure and allert you if anything is missing
* `package` will turn the sidecar `yaml`(s) into a Frictionless `datapackage.json`# Optional
There is a copy of this repo on `GitHub` on which you can test the Frictionless GitHub integration:
Install the package:
```bash
pip install frictionless[github] --pre
pip install 'frictionless[github]' --pre # for zsh shell
```Read the basic example:
```python
from frictionless import Packagepackage = Package("https://github.com/aaronpeikert/default-data-example")
print(package.get_resource('happiness').read_rows())
```In R, you have to download the git repo, but then `frictionless` works as well:
```r
frictionless::read_resource(frictionless::read_package(), "happiness")
```## Creating a binary (for no python install)
```
pyinstaller --onefile defaultdata.py
```