Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality needed in pittgoogle-user repo #19

Merged
merged 55 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
6d14856
prep imports and module-level variables
troyraen Aug 3, 2023
48f67ef
add methods to create, delete, publish to topic
troyraen Aug 3, 2023
cf2398e
revamp Alert class
troyraen Aug 3, 2023
dafec2d
add schemas and schema maps
troyraen Aug 3, 2023
16719c6
add Alert class methods and _PubsubMessageLike
troyraen Aug 3, 2023
d4fdba8
add Subscription.pull_batch
troyraen Aug 3, 2023
426281e
reorder classes to avoid forward reference
troyraen Aug 3, 2023
793612b
add Topic.from_cloud for client w/o explicit Auth
troyraen Aug 3, 2023
d751e03
check envelope for bad request
troyraen Aug 3, 2023
e5503b3
add Alert.get
troyraen Aug 3, 2023
878a281
clarify docstring
troyraen Aug 3, 2023
60cbc8d
move schema maps under the schemas directory
troyraen Sep 16, 2023
80d74b8
move Alert class and related to independent module
troyraen Sep 16, 2023
515f808
implement BadRequest exception
troyraen Sep 17, 2023
09e2738
separate get_key from get and support defaults
troyraen Sep 17, 2023
b30ec39
change schema_map keys to snake_case
troyraen Sep 17, 2023
5d24cbb
add properties for objectid, sourceid, alertid
troyraen Sep 17, 2023
9f803fc
update cloud run example, be lenient with metadata
troyraen Sep 17, 2023
a9f4290
add from_path class method
troyraen Sep 17, 2023
07b591d
bugfix schema maps dir
troyraen Sep 17, 2023
1a373b5
cleanup
troyraen Sep 17, 2023
d415127
reorganize methods, properties, etc.
troyraen Sep 17, 2023
b1ef685
cleanup imports
troyraen Sep 17, 2023
73bf3aa
bugfix last
troyraen Sep 17, 2023
c7a7033
add types_ module with Schema, PubsubMessageLike
troyraen Sep 28, 2023
65aa7cc
add registry module with ProjectIds, Schemas
troyraen Sep 28, 2023
16e3ffa
define SchemaNotFoundError
troyraen Sep 28, 2023
8bdd621
use the new Schema class
troyraen Sep 28, 2023
afb43f9
refactor Alert.get and add Alert.get_key
troyraen Sep 28, 2023
14dd757
add method add_id_attributes
troyraen Sep 28, 2023
73a3e74
update Alert.from_* methods
troyraen Sep 28, 2023
6b244cf
make Alert.attributes dict only
troyraen Sep 28, 2023
25f1136
clean up Alert.dataframe
troyraen Sep 28, 2023
f7100d3
use the new Schema class
troyraen Sep 28, 2023
0258696
add minor conveniences
troyraen Sep 28, 2023
249d961
clean up imports, docs, and comments
troyraen Sep 28, 2023
4f90ffa
remove bigquery module
troyraen Sep 28, 2023
ebe79e9
add bigquery module with Table class
troyraen Sep 28, 2023
ca495ac
update __init__ imports
troyraen Sep 28, 2023
cf65479
remove obsolete method
troyraen Sep 28, 2023
f599778
clean up imports
troyraen Sep 28, 2023
681324e
replace ClassVar -> Final
troyraen Sep 28, 2023
54103e1
update descriptions
troyraen Sep 28, 2023
a2ed5d7
make the Schemas dict a class method
troyraen Sep 28, 2023
cf307f4
bugfix insert_rows
troyraen Sep 29, 2023
2928b5b
publish_time -> datetime
troyraen Oct 8, 2023
f430751
cleanup strings
troyraen Oct 8, 2023
5f9c0f1
move schemas manifest to yaml
troyraen Oct 8, 2023
3da9628
sort package imports
troyraen Oct 8, 2023
90dc68c
bugfix schema paths
troyraen Oct 8, 2023
5d82aaa
add forced sources to alert.dataframe
troyraen Jan 14, 2024
8498ab1
add projectid property
troyraen Jan 14, 2024
ae38ec5
fix type hints
troyraen Jan 14, 2024
5533dbe
update changelog
troyraen Jun 6, 2024
36bf529
fix .md formatting
troyraen Jun 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,40 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

### Added

- ZTF Figures Tutorial
- `Alert` and `Table` classes.
- Registry for alert schemas and GCP Project IDs.
- Alert schemas (Avro) and schema maps (yaml).
- Exceptions: `BadRequest` and `SchemaNotFoundError`.
- Types: `PubsubMessageLike` and `Schema`.
- ZTF Figures Tutorial

### Changed

- update README.md to point to the new docs
- remove setup and requirements files that are no longer needed after switching away from Read The Docs
- Update PubSub classes.
- update README.md to point to the new docs
- remove setup and requirements files that are no longer needed after switching away from Read The Docs

### Removed

- `figures` module (content moved to tutorial). This allowed the removal of the following explicit
- `figures` module (content moved to tutorial). This allowed the removal of the following explicit
dependencies: `aplpy`, `matplotlib`, `numpy`.
- v0.1 BigQuery functions.

## \[0.2.0\] - 2023-07-02

### Added

- `auth` module supporting authentication via a service account or oauth2
- `exceptions` module with class `OpenAlertError`
- "Overview" section in docs
- classes in `utils` module: `ProjectIds`, `Cast`
- files: `CHANGELOG.md`, `pittgoogle_env.yml`
- `auth` module supporting authentication via a service account or oauth2
- `exceptions` module with class `OpenAlertError`
- "Overview" section in docs
- classes in `utils` module: `ProjectIds`, `Cast`
- files: `CHANGELOG.md`, `pittgoogle_env.yml`

### Changed

- Overhaul the `pubsub` module. Add classes `Topic`, `Subscription`, `Consumer`, `Alert`,
- Overhaul the `pubsub` module. Add classes `Topic`, `Subscription`, `Consumer`, `Alert`,
`Response`.

### Fixed

- cleanup some issues flagged by Codacy
- cleanup some issues flagged by Codacy
7 changes: 6 additions & 1 deletion pittgoogle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
except ImportError: # for Python<3.8
import importlib_metadata as metadata

from . import auth, bigquery, exceptions, pubsub, utils
from . import alert, auth, bigquery, exceptions, pubsub, registry, types_, utils
from .alert import Alert
from .auth import Auth
from .bigquery import Table
from .pubsub import Consumer, Subscription, Topic
from .registry import ProjectIds, Schemas

__version__ = metadata.version("pittgoogle-client")

Expand Down
Loading