Skip to content

Commit

Permalink
add public and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eakmanrq committed May 18, 2024
1 parent 8483236 commit 7705995
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ stubs:
stubgen sqlframe/bigquery/functions.py --output ./ --inspect-mode
stubgen sqlframe/duckdb/functions.py --output ./ --inspect-mode
stubgen sqlframe/postgres/functions.py --output ./ --inspect-mode

package:
pip3 install wheel && python3 setup.py sdist bdist_wheel

publish: package
pip3 install twine && python3 -m twine upload dist/*
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SQLFrame implements the PySpark DataFrame API in order to enable running transfo

![SQLFrame Diagram](docs/images/sqlframe_diagram.png)

SQLFrame currently supports the following engines:
SQLFrame currently supports the following engines (many more in development):

* [BigQuery](docs/bigquery.md)
* [DuckDB](docs/duckdb.md)
Expand Down Expand Up @@ -72,9 +72,7 @@ df = (
)
```
```python
df.sql()
```
```sql
>>> df.sql()
WITH `t94228` AS (
SELECT
`natality`.`year` AS `year`,
Expand All @@ -101,9 +99,7 @@ ORDER BY
LIMIT 5
```
```python
df.show()
```
```
>>> df.show()
+------+-------------------------------------+----------------+
| year | number of new families single child | percent change |
+------+-------------------------------------+----------------+
Expand Down
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ theme:
- navigation.tracking
- navigation.tabs
- navigation.sections
- toc.integrate
- toc.follow
plugins:
- include-markdown
- search
Expand Down

0 comments on commit 7705995

Please sign in to comment.