-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from yuhui/2.0.0
upgrade to 2.0.0
- Loading branch information
Showing
39 changed files
with
1,729 additions
and
506 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: API workflow | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Test singstat package | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
- name: Install requirements | ||
run: pip install -r requirements_dev.txt | ||
- name: Run tests and collect coverage | ||
run: pytest --cov=singstat --cov-report=xml | ||
- name: Upload coverage reports to Codecov with GitHub Action | ||
uses: codecov/codecov-action@v5 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
*.code-workspace | ||
*.sqlite | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
os: ubuntu-lts-latest | ||
tools: | ||
python: "3" | ||
python: latest | ||
|
||
python: | ||
install: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ignore: | ||
- "docs/*" | ||
- "tests/*" | ||
- "setup.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Other Packages Built by Me | ||
========================== | ||
|
||
If you like this package, you may be interested in these packages that I have | ||
built to work with other Government of Singapore APIs: | ||
|
||
- `datagovsg`_: for interacting with APIs available at Data.gov.sg. | ||
- `landtransportsg`_: for interacting with APIs available at LTA DataMall. | ||
|
||
.. _datagovsg: https://pypi.org/project/datagovsg/ | ||
.. _landtransportsg: https://pypi.org/project/landtransportsg/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,31 @@ | ||
singstat | ||
======== | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: singstat | ||
:members: | ||
:member-order: bysource | ||
:exclude-members: Client | ||
:show-inheritance: | ||
|
||
singstat.singstat | ||
----------------- | ||
|
||
.. automodule:: singstat.singstat | ||
|
||
.. autoclass:: SingStat | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
singstat.exceptions | ||
------------------- | ||
|
||
.. automodule:: singstat.exceptions | ||
|
||
.. autoexception:: APIError | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
singstat.types Response Types | ||
============================= | ||
|
||
.. automodule:: singstat.types | ||
|
||
resource_id() | ||
------------- | ||
|
||
.. autoclass:: ResourceIdDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _ResourceIdDataDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _ResourceIdDataRecordDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
metadata() | ||
---------- | ||
|
||
.. autoclass:: MetadataDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _MetadataDataDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _MetadataDataRecordsDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _MetadataDataRecordsRowDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
tabledata() | ||
----------- | ||
|
||
.. autoclass:: TabledataDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _TabledataDataTimeseriesDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _TabledataDataTimeseriesRowDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _TabledataDataCrossSectionalMultiDimensionalCubeDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _TabledataDataCrossSectionalMultiDimensionalCubeRowDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _TabledataDataRowColumnColumnDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
.. autoclass:: _TabledataDataRowColumnDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
singstat.types_args Argument Types | ||
================================== | ||
|
||
.. automodule:: singstat.types_args | ||
|
||
resource_id() | ||
------------- | ||
|
||
.. autoclass:: ResourceIdArgsDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: | ||
|
||
tabledata() | ||
----------- | ||
|
||
.. autoclass:: TabledataArgsDict | ||
:members: | ||
:member-order: bysource | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ Package Reference | |
|
||
package/singstat | ||
package/singstat.client | ||
package/singstat.types_args | ||
package/singstat.types |
Oops, something went wrong.