{"id":13595760,"url":"https://github.com/kennethreitz/pytheory","last_synced_at":"2026-10-19T12:00:35.210Z","repository":{"id":50793369,"uuid":"146587055","full_name":"kennethreitz/pytheory","owner":"kennethreitz","description":"Music Theory for Humans.","archived":false,"fork":false,"pushed_at":"2026-10-15T23:52:37.000Z","size":614469,"stargazers_count":1657,"open_issues_count":5,"forks_count":84,"subscribers_count":56,"default_branch":"master","last_synced_at":"2026-10-16T15:41:11.551Z","etag":null,"topics":["hacktoberfest","music","music-theory","python","scales","sympy"],"latest_commit_sha":null,"homepage":"https://pytheory.org/","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/kennethreitz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"kennethreitz","thanks_dev":"kennethreitz","custom":"https://cash.app/$KennethReitz"}},"created_at":"2018-08-29T10:59:32.000Z","updated_at":"2026-10-13T20:41:28.000Z","dependencies_parsed_at":"2024-08-01T16:40:19.453Z","dependency_job_id":"07f5e9a7-a8c8-4fb8-b7ee-4f4528b6d571","html_url":"https://github.com/kennethreitz/pytheory","commit_stats":{"total_commits":45,"total_committers":7,"mean_commits":6.428571428571429,"dds":"0.15555555555555556","last_synced_commit":"39aa185f194cfcc1f9f02d47b0dc752e81215808"},"previous_names":[],"tags_count":100,"template":false,"template_full_name":null,"purl":"pkg:github/kennethreitz/pytheory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fpytheory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fpytheory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fpytheory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fpytheory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kennethreitz","download_url":"https://codeload.github.com/kennethreitz/pytheory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kennethreitz%2Fpytheory/sbom","scorecard":{"id":555336,"data":{"date":"2025-08-11","repo":{"name":"github.com/kennethreitz/pytheory","commit":"43f727139497723ec782438385cb3668123f7323"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"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":"Code-Review","score":1,"reason":"Found 3/27 approved changesets -- score normalized to 1","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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T12:10:40.581Z","repository_id":50793369,"created_at":"2025-08-20T12:10:40.581Z","updated_at":"2025-08-20T12:10:40.581Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38356432,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-19T02:00:06.414Z","response_time":53,"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":["hacktoberfest","music","music-theory","python","scales","sympy"],"created_at":"2024-08-01T16:01:57.108Z","updated_at":"2026-10-19T12:00:30.200Z","avatar_url":"https://github.com/kennethreitz.png","language":"Python","funding_links":["https://github.com/sponsors/kennethreitz","https://thanks.dev/kennethreitz","https://cash.app/$KennethReitz"],"categories":["Python","Music"],"sub_categories":["Programming"],"readme":"# PyTheory: Music Theory for Humans\n\nThis (work in progress) library attempts to make exploring music theory approachable to humans.\n\n![logo](https://github.com/kennethreitz/pytheory/raw/master/ext/pytheory-small.png)\n\n## True Scale -\u003e Pitch Evaluation\n\n```pycon\n\u003e\u003e\u003e from pytheory import TonedScale\n\n\u003e\u003e\u003e c_minor = TonedScale(tonic='C4')['minor']\n\n\u003e\u003e\u003e c_minor\n\u003cScale I=C4 II=D4 III=Eb4 IV=F4 V=G4 VI=Ab4 VII=Bb5 VIII=C5\u003e\n\n\u003e\u003e\u003e c_minor[0].pitch()\n523.251130601197\n\n\u003e\u003e\u003e c_minor[\"I\"].pitch(symbolic=True)\n440*2**(1/4)\n\n\u003e\u003e\u003e c_minor[\"tonic\"].pitch(temperament='pythagorean', symbolic=True)\n14080/27\n```\n\n## Audibly play a note (or chord)\n\n    \u003e\u003e\u003e from pytheory import play\n    play(c_minor[0], t=1_000)\n\n\n## Chord Fingerings for Custom Tunings\n\n```pycon\n\u003e\u003e\u003e from pytheory import Tone, Fretboard, CHARTS\n\n\u003e\u003e\u003e tones = (\n...     Tone.from_string(\"F2\"),\n...     Tone.from_string(\"C3\"),\n...     Tone.from_string(\"G3\"),\n...     Tone.from_string(\"D4\"),\n...     Tone.from_string(\"A5\"),\n...     Tone.from_string(\"E5\")\n... )\n\n\u003e\u003e\u003e fretboard = Fretboard(tones=tones)\n\u003e\u003e\u003e\n\u003e\u003e\u003e c_chord = CHARTS['western'][\"C\"]\n\n\u003e\u003e\u003e print(c_chord.fingering(fretboard=fretboard))\n(0, 0, 0, 3, 3, 3)\n```\n\nIt can also [generate charts for all known chords](https://gist.github.com/kennethreitz/b363660145064fc330c206294cff92fc) for any instrument (accuracy to be determined!).\n\n✨🍰✨\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethreitz%2Fpytheory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkennethreitz%2Fpytheory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkennethreitz%2Fpytheory/lists"}