All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
(none)
- Add 'Surveys' documentation section with pages for ZTF and LVK.
- Add LVK to Data Listings page.
- Reorganize and update data listings.
- Add FAQ content.
- Clean up docs. Remove 'TODO's. Add autosummary to module pages.
- Update Google # on FAQ Costs.
- Add
bigquery.Client
class. - Add class attributes
Table.query
,Table.schema
. - Add dependency on 'db-dtypes' to support BigQuery -> Pandas.
- Remove
Table.auth
and simplifyTable.client
. This functionality is now managed bybigquery.Client
. - In
Table
andTopic
, the project ID is no longer changed away from what the user provided. It was more confusing and dangerous than it was helpful.
Table.auth
- Minor documentation updates.
- Loosen
astropy
version restriction to ">=5.3".astropy
v<6.0.0 is required bysupernnova
v3.0.1 which is not a direct dependency ofpittgoogle-client
but is often used with it.
- A default schema to be used when no schema is provided.
- Child classes for
schema.Schema
that are specific to different serialization formats.
- Support for the latest LSST schema version (lsst.v7_1.alert). Note that this is the only LSST schema version currently supported.
- Renamed
exceptions.SchemaNotFoundError
->exceptions.SchemaError
, repurposed for more general use. - Updates to documentation.
- Removed
exceptions.OpenAlertError
. Useexceptions.SchemaError
instead. - Removed dependency on
lsst-alert-packet
package. We cannot install this from a git repo and also publish our package to PyPI. Need to figure out how to fix this. Without it, 'schema.SchemaHelper.lsst_auto_schema_helper' will not work.
- Renamed
exceptions.PubSubInvalid
->exceptions.CloudConnectionError
, repurposed for more general use.
- Support for the LSST alert schema.
types_.Schema._from_yaml
class method and the related helpers_local_schema_helper
and_lsst_schema_helper
.- Dependency on
lsst-alert-packet
package for the_lsst_schema_helper
. types_.Schema.schemaless_alert_bytes
bool indicating whether the alert bytes are schemaless and thus atypes_.Schema.definition
is required in order to serialize and deserialize them.types_.Schama.manifest
containing the schemas.yml file loaded as a list of dicts.types_.Schema.filter_map
, moved from the schema map's "FILTER_MAP".Schema.origin
and schema-map key name "SCHEMA_ORIGIN" (see Changed).types_.Schema.definition
. Not actually new, but repurposed (see Changed, Removed).
- Don't let
Subscription._set_topic
clobber an existing topic attribute. This was preventing the user from creating a subscription attached to a topic in a different project.
- Changed some schema-map keys to include an underscore for clarity, e.g., "magerr" -> "mag_err" (breaking change).
- Change method to private
Alert.add_id_attributes
->Alert._add_id_attributes
. - Changed attribute name
types_.Schema.definition
->Schema.origin
. Related, changed schema-map key name "SURVEY_SCHEMA" -> "SCHEMA_ORIGIN". Both for clarity. types_.Schema.definition
is now used to hold the actual schema definition. Currently this only needed for Avro and so holds the dict loaded from the ".avsc" file(s).- Update docstrings for clarity and accuracy.
- Improve type hints.
- Fix up Sphinx and rst to improve how docs are being rendered.
types_.Schema.avsc
. Replaced bytypes_.Schema.definition
.- Schema-map keys "SURVEY_SCHEMA" (replaced), "TOPIC_SYNTAX" (dropped), "FILTER_MAP" (moved).
- Documentation pages for
alert
andtypes_
.
- Updated docs dependencies. This helped fix a bug that was preventing some documentation from building.
- Modernized some type hints to (e.g.,) use
|
instead oftyping.Optional
. - Moved usage examples into the respective class docstrings.
- Cleaned up some documentation verbiage and Sphinx directives.
- Minor documentation updates.
- PubSubInvalid exception. Raised when an invalid Pub/Sub configuration is encountered.
- Major documentation reorganization and updates.
- Rename the PubSub.Consumer parameter batch_maxwait -> batch_max_wait_between_messages for clarity.
- Subscription.purge method.
- Bugfix message format in Alert.from_cloud_run.
- Updated dependencies in poetry.lock file to latest versions.
- Relaxed pandas version pin in pyproject.toml file (for SuperNNova library).
- pittgoogle_env.yml file
Alert
andTable
classes.- Registry for alert schemas and GCP Project IDs.
- Alert schemas (Avro) and schema maps (yaml).
- Exceptions:
BadRequest
andSchemaNotFoundError
. - Types:
PubsubMessageLike
andSchema
. - ZTF Figures Tutorial
- Major updates to
pubsub
classes. - Make README.md point to the new docs.
figures
module (content moved to tutorial). This allowed the removal of the following explicit dependencies:aplpy
,matplotlib
,numpy
. Content moved to ZTF Figures Tutorial.- v0.1
bigquery
functions. - Setup and requirements files that are no longer needed after switching away from Read The Docs.
auth
module supporting authentication via a service account or oauth2exceptions
module with classOpenAlertError
- "Overview" section in docs
- classes in
utils
module:ProjectIds
,Cast
- files:
CHANGELOG.md
,pittgoogle_env.yml
- Overhaul the
pubsub
module. Add classesTopic
,Subscription
,Consumer
,Alert
,Response
.
- cleanup some issues flagged by Codacy