Skip to content

Commit ec67599

Browse files
committed
switch to pdoc3
1 parent e4734d7 commit ec67599

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3511
-32435
lines changed

data_algebra_dev_env.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- pylint
2626
- pip
2727
- pip:
28-
- pdoc
28+
- pdoc3
2929
- google.cloud
3030
- google-cloud-bigquery
3131
- db_dtypes

docs/data_algebra.html

Lines changed: 0 additions & 310 deletions
This file was deleted.

docs/data_algebra/BigQuery.html

Lines changed: 0 additions & 1235 deletions
This file was deleted.

docs/data_algebra/BigQuery.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
Module data_algebra.BigQuery
2+
============================
3+
Adapter for Google BigQuery database
4+
5+
Functions
6+
---------
7+
8+
9+
`example_handle()`
10+
: Return an example db handle for testing. Returns None if helper packages not present.
11+
Note: binds in a data_catalog and data schema prefix. So this handle is specific
12+
to one database.
13+
14+
Classes
15+
-------
16+
17+
`BigQueryModel(*, table_prefix: Optional[str] = None)`
18+
: A model of how SQL should be generated for BigQuery
19+
connection should be google.cloud.bigquery.client.Client
20+
21+
### Ancestors (in MRO)
22+
23+
* data_algebra.db_model.DBModel
24+
* data_algebra.shift_pipe_action.ShiftPipeAction
25+
* abc.ABC
26+
* data_algebra.sql_model.SQLModel
27+
28+
### Methods
29+
30+
`get_table_name(self, table_description)`
31+
:
32+
33+
`BigQuery_DBHandle(*, db_model=BigQueryModel, conn)`
34+
: Container for database connection handles.
35+
36+
Represent a db connection.
37+
38+
:param db_model: associated database model
39+
:param conn: database connection
40+
:param db_engine: optional sqlalchemy style engine (for closing)
41+
42+
### Ancestors (in MRO)
43+
44+
* data_algebra.db_model.DBHandle
45+
* data_algebra.shift_pipe_action.ShiftPipeAction
46+
* abc.ABC
47+
48+
### Methods
49+
50+
`describe_bq_table(self, *, table_catalog, table_schema, table_name, row_limit=7) ‑> data_algebra.data_ops.TableDescription`
51+
:
52+
53+
`query_to_csv(self, q, *, res_name) ‑> None`
54+
: Write query to csv

docs/data_algebra/MySQL.html

Lines changed: 0 additions & 505 deletions
This file was deleted.

docs/data_algebra/MySQL.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Module data_algebra.MySQL
2+
=========================
3+
Partial adapter of data algebra for MySQL. Not all data algebra operations are supported on this database at this time.
4+
5+
Functions
6+
---------
7+
8+
9+
`example_handle()`
10+
: Return an example db handle for testing. Returns None if helper packages not present.
11+
12+
Classes
13+
-------
14+
15+
`MySQLModel()`
16+
: A model of how SQL should be generated for MySQL.
17+
Assuming we are using a sqlalchemy engine as our connection.
18+
19+
### Ancestors (in MRO)
20+
21+
* data_algebra.db_model.DBModel
22+
* data_algebra.shift_pipe_action.ShiftPipeAction
23+
* abc.ABC
24+
* data_algebra.sql_model.SQLModel

docs/data_algebra/OrderedSet.html

Lines changed: 0 additions & 759 deletions
This file was deleted.

docs/data_algebra/OrderedSet.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
Module data_algebra.OrderedSet
2+
==============================
3+
Ordered set to enhance presentation of column names.
4+
5+
Adapted from: https://stackoverflow.com/a/1653978
6+
7+
Functions
8+
---------
9+
10+
11+
`ordered_diff(a: collections.abc.Iterable, b: collections.abc.Iterable) ‑> data_algebra.OrderedSet.OrderedSet`
12+
: a with b removed, a order preserved.
13+
14+
15+
`ordered_intersect(a: collections.abc.Iterable, b: collections.abc.Iterable) ‑> data_algebra.OrderedSet.OrderedSet`
16+
: Intersection of two iterables, ordered by a.
17+
18+
19+
`ordered_union(a: collections.abc.Iterable, b: collections.abc.Iterable) ‑> data_algebra.OrderedSet.OrderedSet`
20+
: Union of two iterables, ordered by a first, then b.
21+
22+
Classes
23+
-------
24+
25+
`OrderedSet(v: Optional[collections.abc.Iterable] = None)`
26+
: Ordered set to enhance presentation of column names.
27+
28+
### Ancestors (in MRO)
29+
30+
* collections.abc.MutableSet
31+
* collections.abc.Set
32+
* collections.abc.Collection
33+
* collections.abc.Sized
34+
* collections.abc.Iterable
35+
* collections.abc.Container
36+
37+
### Class variables
38+
39+
`impl: collections.OrderedDict`
40+
:
41+
42+
### Instance variables
43+
44+
`difference`
45+
:
46+
47+
`difference_update`
48+
:
49+
50+
`intersection`
51+
:
52+
53+
`intersection_update`
54+
:
55+
56+
`issubset`
57+
:
58+
59+
`issuperset`
60+
:
61+
62+
`symmetric_difference`
63+
:
64+
65+
`symmetric_difference_update`
66+
:
67+
68+
### Methods
69+
70+
`add(self, elem)`
71+
: add an element
72+
73+
`copy(self)`
74+
:
75+
76+
`discard(self, elem)`
77+
: delete an element
78+
79+
`union(self, *args)`
80+
: create new set union
81+
82+
`update(self, *args, **kwargs)`
83+
: add/replace elements

docs/data_algebra/PolarsSQL.html

Lines changed: 0 additions & 372 deletions
This file was deleted.

docs/data_algebra/PolarsSQL.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Module data_algebra.PolarsSQL
2+
=============================
3+
Polars SQL adapter for data algebra.
4+
5+
Classes
6+
-------
7+
8+
`PolarsSQLModel()`
9+
: A model of how SQL should be generated for PolarsSQL.
10+
Model is just a stand-in for now, as we don't have a good description of Polars SQL dialect yet.
11+
12+
### Ancestors (in MRO)
13+
14+
* data_algebra.sql_model.SQLModel

0 commit comments

Comments
 (0)