{"id":28297,"library":"sprintsolo-sally-db-client","title":"sprintsolo-sally-db-client","description":"A Prisma-based Python client for organization services, generated from a central repository. Version 0.1.136 targets Python >=3.11. This library provides auto-generated database access models and queries for Sally DB services.","status":"active","version":"0.1.136","language":"python","source_language":"en","source_url":"https://github.com/sprintsolo/sally-db-client","tags":["prisma","client","database","sally"],"install":[{"cmd":"pip install sprintsolo-sally-db-client","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core ORM used to generate client","package":"prisma","optional":false},{"reason":"Data validation and settings management","package":"pydantic","optional":false}],"imports":[{"note":"The package exports from 'sally_db_client' subpackage; using the full name fails.","wrong":"from sprintsolo_sally_db_client import SallyClient","symbol":"SallyClient","correct":"from sally_db_client import SallyClient"},{"note":"Prisma is a separate dependency; do not import from sally_db_client","wrong":"from sally_db_client import Prisma","symbol":"Prisma","correct":"from prisma import Prisma"},{"note":"The models submodule is under sally_db_client, not the top-level package.","wrong":"from sprintsolo_sally_db_client.models import User","symbol":"models","correct":"from sally_db_client.models import User, Organization"}],"quickstart":{"code":"import os\nfrom sally_db_client import SallyClient\n\nclient = SallyClient(\n    database_url=os.environ.get('DATABASE_URL', 'postgresql://...'),\n    # other config\n)\n# Example: fetch all organizations\norgs = client.organization.find_many()\nprint(orgs)\n","lang":"python","description":"Initialize the client with a DATABASE_URL env var and run a simple query."},"warnings":[{"fix":"Do not modify the client code; instead, fork or extend via middleware.","message":"The package is generated automatically; manual changes to the client will be overwritten on regeneration.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Always use the underscored version in Python imports.","message":"The package name on PyPI uses hyphens, but the import path uses underscores. For example, use `import sally_db_client` not `import sprintsolo-sally-db-client`.","severity":"breaking","affected_versions":"all"},{"fix":"Upgrade to >=0.1.100 and use `from sally_db_client import ...`.","message":"Older versions may use `sprintsolo_sally_db_client` as the top-level module. This was changed to `sally_db_client` in recent releases.","severity":"deprecated","affected_versions":"<0.1.100"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use `import sally_db_client` or `from sally_db_client import ...`.","cause":"Importing using the package name with hyphens instead of underscores.","error":"ModuleNotFoundError: No module named 'sprintsolo_sally_db_client'"},{"fix":"Check the documentation: `from sally_db_client import SallyClient`. If not present, use `from sally_db_client.client import SallyClient`.","cause":"The client class may have been renamed or not imported from the correct submodule.","error":"AttributeError: module 'sally_db_client' has no attribute 'SallyClient'"},{"fix":"Run `prisma db push` or `prisma migrate dev` to sync schema.","cause":"The database schema does not match the generated client (e.g., missing migrations).","error":"PrismaClientKnownRequestError: ... relation \"organization\" does not exist"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}