lsst-felis 26.2024.900__py3-none-any.whl → 29.2025.4500__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. felis/__init__.py +10 -24
  2. felis/cli.py +437 -341
  3. felis/config/tap_schema/columns.csv +33 -0
  4. felis/config/tap_schema/key_columns.csv +8 -0
  5. felis/config/tap_schema/keys.csv +8 -0
  6. felis/config/tap_schema/schemas.csv +2 -0
  7. felis/config/tap_schema/tables.csv +6 -0
  8. felis/config/tap_schema/tap_schema_std.yaml +273 -0
  9. felis/datamodel.py +1386 -193
  10. felis/db/dialects.py +116 -0
  11. felis/db/schema.py +62 -0
  12. felis/db/sqltypes.py +275 -48
  13. felis/db/utils.py +409 -0
  14. felis/db/variants.py +159 -0
  15. felis/diff.py +234 -0
  16. felis/metadata.py +385 -0
  17. felis/tap_schema.py +767 -0
  18. felis/tests/__init__.py +0 -0
  19. felis/tests/postgresql.py +134 -0
  20. felis/tests/run_cli.py +79 -0
  21. felis/types.py +57 -9
  22. lsst_felis-29.2025.4500.dist-info/METADATA +38 -0
  23. lsst_felis-29.2025.4500.dist-info/RECORD +31 -0
  24. {lsst_felis-26.2024.900.dist-info → lsst_felis-29.2025.4500.dist-info}/WHEEL +1 -1
  25. {lsst_felis-26.2024.900.dist-info → lsst_felis-29.2025.4500.dist-info/licenses}/COPYRIGHT +1 -1
  26. felis/check.py +0 -381
  27. felis/simple.py +0 -424
  28. felis/sql.py +0 -275
  29. felis/tap.py +0 -433
  30. felis/utils.py +0 -100
  31. felis/validation.py +0 -103
  32. felis/version.py +0 -2
  33. felis/visitor.py +0 -180
  34. lsst_felis-26.2024.900.dist-info/METADATA +0 -28
  35. lsst_felis-26.2024.900.dist-info/RECORD +0 -23
  36. {lsst_felis-26.2024.900.dist-info → lsst_felis-29.2025.4500.dist-info}/entry_points.txt +0 -0
  37. {lsst_felis-26.2024.900.dist-info → lsst_felis-29.2025.4500.dist-info/licenses}/LICENSE +0 -0
  38. {lsst_felis-26.2024.900.dist-info → lsst_felis-29.2025.4500.dist-info}/top_level.txt +0 -0
  39. {lsst_felis-26.2024.900.dist-info → lsst_felis-29.2025.4500.dist-info}/zip-safe +0 -0
felis/__init__.py CHANGED
@@ -19,29 +19,15 @@
19
19
  # You should have received a copy of the GNU General Public License
20
20
  # along with this program. If not, see <https://www.gnu.org/licenses/>.
21
21
 
22
- from . import types
23
- from .check import *
24
- from .version import *
25
- from .visitor import *
22
+ from .datamodel import Schema
23
+ from .db.schema import create_database
24
+ from .diff import DatabaseDiff, FormattedSchemaDiff, SchemaDiff
25
+ from .metadata import MetaDataBuilder
26
26
 
27
- DEFAULT_CONTEXT = {
28
- "@vocab": "http://lsst.org/felis/",
29
- "mysql": "http://mysql.com/",
30
- "postgres": "http://posgresql.org/",
31
- "oracle": "http://oracle.com/database/",
32
- "sqlite": "http://sqlite.org/",
33
- "fits": "http://fits.gsfc.nasa.gov/FITS/4.0/",
34
- "ivoa": "http://ivoa.net/rdf/",
35
- "votable": "http://ivoa.net/rdf/VOTable/",
36
- "tap": "http://ivoa.net/documents/TAP/",
37
- "tables": {"@container": "@list", "@type": "@id", "@id": "felis:Table"},
38
- "columns": {"@container": "@list", "@type": "@id", "@id": "felis:Column"},
39
- "constraints": {"@container": "@list", "@type": "@id"},
40
- "indexes": {"@container": "@list", "@type": "@id", "@id": "felis:Index"},
41
- "referencedColumns": {"@container": "@list", "@type": "@id"},
42
- }
27
+ from importlib.metadata import PackageNotFoundError, version
43
28
 
44
- DEFAULT_FRAME = {
45
- "@context": DEFAULT_CONTEXT,
46
- "@type": "felis:Schema",
47
- }
29
+ try:
30
+ __version__ = version("lsst-felis")
31
+ except PackageNotFoundError:
32
+ # Package not installed or scons not run.
33
+ __version__ = "0.0.0"