{"id":13501607,"url":"https://github.com/kneufeld/alkali","last_synced_at":"2025-10-29T08:10:55.737Z","repository":{"id":57409782,"uuid":"67442183","full_name":"kneufeld/alkali","owner":"kneufeld","description":"a simple python database","archived":false,"fork":false,"pushed_at":"2019-03-18T19:12:37.000Z","size":303,"stargazers_count":105,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-27T04:06:17.158Z","etag":null,"topics":["database","orm","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kneufeld.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-05T18:21:41.000Z","updated_at":"2025-07-04T09:42:03.000Z","dependencies_parsed_at":"2022-08-24T18:50:28.194Z","dependency_job_id":null,"html_url":"https://github.com/kneufeld/alkali","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/kneufeld/alkali","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kneufeld%2Falkali","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kneufeld%2Falkali/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kneufeld%2Falkali/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kneufeld%2Falkali/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kneufeld","download_url":"https://codeload.github.com/kneufeld/alkali/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kneufeld%2Falkali/sbom","scorecard":{"id":564440,"data":{"date":"2025-08-11","repo":{"name":"github.com/kneufeld/alkali","commit":"0b5d423ea584ae3d627fcf37b801898364e19c71"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2011-18 / GHSA-3mwg-gp5g-fv3q","Warn: Project is vulnerable to: PYSEC-2012-14 / GHSA-hjf3-r7gw-9rwg","Warn: Project is vulnerable to: PYSEC-2011-19","Warn: Project is vulnerable to: PYSEC-2011-20","Warn: Project is vulnerable to: PYSEC-2011-21"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T14:35:39.287Z","repository_id":57409782,"created_at":"2025-08-20T14:35:39.288Z","updated_at":"2025-08-20T14:35:39.288Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281585010,"owners_count":26526179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","orm","python"],"created_at":"2024-07-31T22:01:43.413Z","updated_at":"2025-10-29T08:10:55.705Z","avatar_url":"https://github.com/kneufeld.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Alkali\n\n![](https://readthedocs.org/projects/alkali/badge/?version=master)\n![](https://travis-ci.org/kneufeld/alkali.svg?branch=master)\n![](https://codecov.io/gh/kneufeld/alkali/branch/master/graph/badge.svg)\n![](https://coveralls.io/repos/github/kneufeld/alkali/badge.svg?branch=master)\n\nAlkali was featured on [PythonBytes](https://pythonbytes.fm/) episode\n[#119](https://pythonbytes.fm/episodes/show/119/assorted-files-as-django-orm-backends-with-alkali)!\n\nAlkali is a database engine, written in Python 3. It's raison d'être is\nto provide a Django-like ORM while controlling the on disk format. If\nyou already have your data in a real database like Postgres then you'll\nwant SQLAlchemy, if however, your data is in json/yaml/csv/other/etc\nfiles then Alkali might be exactly what you're looking for.\n\nFull documentation at https://alkali.readthedocs.org\n\nFor some examples, please go straight to the quickstart guide:\nhttps://alkali.readthedocs.io/en/master/quickstart.html\n\nHere's a teaser to whet your appetite.\n\n```python\nimport os\nfrom alkali import Database, Model, fields, tznow\n\nclass Entry(Model):\n\n   date    = fields.DateTimeField(primary_key = True)\n   title   = fields.StringField()\n   body    = fields.StringField()\n   created = fields.DateTimeField(auto_now_add=True)\n\ndb = Database(models=[Entry], save_on_exit=True)\n\ne = Entry(date=tznow(), title=\"my first entry\", body=\"alkali is pretty good\")\ne.save()    # adds model instance to Entry.objects\n\ntitle = Entry.objects.filter(date__le=tznow()).first().title\nassert title == \"my first entry\"\n\ndb.store()\nassert os.path.getsize('Entry.json')\n```\n\n## Installation\n\nIf you're reading this then you probably didn't install with `pip\ninstall alkali` and get on with your life. You probably want to be able\nedit the code and run tests and whatnot.\n\nIn that case run: `pip install -e .[dev]`\n\n\n## Documentation\n\nIf you want to be able to build the docs then also run\n\n```\npip install -e .[docs]\nmake html\n```\n\n\n## Testing\n\nDuring development `pytest` was the runner of choice but any unit test\nrunner should work.\n\nExamples:\n\n* `pytest` run all tests\n* `pytest -s` to see stdout (any print statements)\n* `pytest --cov` to see test coverage\n* `pytest -k test_1` to run all tests named *test_1*\n* `pytest -k test_1 alkali/tests/test_fields.py` to run test_1 in test_fields.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkneufeld%2Falkali","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkneufeld%2Falkali","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkneufeld%2Falkali/lists"}