{"id":13392873,"url":"https://github.com/jab/bidict","last_synced_at":"2025-05-11T05:47:55.109Z","repository":{"id":21074147,"uuid":"24373694","full_name":"jab/bidict","owner":"jab","description":"The bidirectional mapping library for Python.","archived":false,"fork":false,"pushed_at":"2025-04-07T17:30:15.000Z","size":2771,"stargazers_count":1524,"open_issues_count":4,"forks_count":62,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-05-11T05:47:50.171Z","etag":null,"topics":["bidict","bimap","data-structures","python"],"latest_commit_sha":null,"homepage":"https://bidict.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jab.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.rst","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"jab","tidelift":"pypi/bidict","polar":"jab","ko_fi":"joshbronson","custom":["http://paypal.me/js3","https://thanks.dev","https://gumroad.com/l/bidict"],"community_bridge":null,"issuehunt":null,"liberapay":null,"open_collective":null,"patreon":null}},"created_at":"2014-09-23T14:00:27.000Z","updated_at":"2025-05-10T03:11:20.000Z","dependencies_parsed_at":"2023-10-14T22:23:12.129Z","dependency_job_id":"caf6e6a8-9095-4fe7-adca-cc723666147e","html_url":"https://github.com/jab/bidict","commit_stats":{"total_commits":585,"total_committers":16,"mean_commits":36.5625,"dds":0.4461538461538461,"last_synced_commit":"4227b9727bf7b98282dbf351dd7dd135f613b025"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jab%2Fbidict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jab%2Fbidict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jab%2Fbidict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jab%2Fbidict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jab","download_url":"https://codeload.github.com/jab/bidict/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523733,"owners_count":21921818,"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","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":["bidict","bimap","data-structures","python"],"created_at":"2024-07-30T17:00:38.502Z","updated_at":"2025-05-11T05:47:55.090Z","avatar_url":"https://github.com/jab.png","language":"Python","funding_links":["https://github.com/sponsors/jab","https://tidelift.com/funding/github/pypi/bidict","https://polar.sh/jab","https://ko-fi.com/joshbronson","http://paypal.me/js3","https://thanks.dev","https://gumroad.com/l/bidict","https://tidelift.com/subscription/pkg/pypi-bidict?utm_source=pypi-bidict\u0026utm_medium=referral\u0026utm_campaign=readme","https://www.paypal.com/cgi-bin/webscr?cmd=_xclick\u0026business=jabronson%40gmail%2ecom\u0026lc=US\u0026item_name=Sponsor%20bidict","https://tidelift.com"],"categories":["Uncategorized","Python","Built-in Classes Enhancement","Data Processing","内置类增强功能","内置类的增强版实现","Data Structures","Built-in Classes Enhancement [🔝](#readme)","资源列表","Awesome Python"],"sub_categories":["Uncategorized","Data Representation","内置类的增强版实现","Built-in Classes Enhancement"],"readme":".. role:: doc\n.. (Forward declaration for the \"doc\" role that Sphinx defines for interop with renderers that\n   are often used to show this doc and that are unaware of Sphinx (GitHub.com, PyPI.org, etc.).\n   Use :doc: rather than :ref: here for better interop as well.)\n\n\nbidict\n======\n\n*The bidirectional mapping library for Python.*\n\n\nStatus\n------\n\n.. image:: https://img.shields.io/pypi/v/bidict.svg\n   :target: https://pypi.org/project/bidict\n   :alt: Latest release\n\n.. image:: https://img.shields.io/readthedocs/bidict/main.svg\n   :target: https://bidict.readthedocs.io/en/main/\n   :alt: Documentation\n\n.. image:: https://github.com/jab/bidict/actions/workflows/test.yml/badge.svg\n   :target: https://github.com/jab/bidict/actions/workflows/test.yml?query=branch%3Amain\n   :alt: GitHub Actions CI status\n\n.. image:: https://img.shields.io/pypi/l/bidict.svg\n   :target: https://raw.githubusercontent.com/jab/bidict/main/LICENSE\n   :alt: License\n\n.. image:: https://static.pepy.tech/badge/bidict\n   :target: https://pepy.tech/project/bidict\n   :alt: PyPI Downloads\n\n.. image:: https://img.shields.io/badge/GitHub-sponsor-ff69b4\n   :target: https://github.com/sponsors/jab\n   :alt: Sponsor\n\n\nFeatures\n--------\n\n- Mature: Depended on by\n  Google, Venmo, CERN, Baidu, Tencent,\n  and teams across the world since 2009\n\n- Familiar, Pythonic APIs\n  that are carefully designed for\n  safety, simplicity, flexibility, and ergonomics\n\n- Lightweight, with no runtime dependencies\n  outside Python's standard library\n\n- Implemented in\n  concise, well-factored, fully type-hinted Python code\n  that is optimized for running efficiently\n  as well as for long-term maintenance and stability\n  (as well as `joy \u003c#learning-from-bidict\u003e`__)\n\n- Extensively `documented \u003chttps://bidict.readthedocs.io\u003e`__\n\n- 100% test coverage\n  running continuously across all supported Python versions\n  (including property-based tests and benchmarks)\n\n\nInstallation\n------------\n\n``pip install bidict``\n\n\nQuick Start\n-----------\n\n.. code:: python\n\n   \u003e\u003e\u003e from bidict import bidict\n   \u003e\u003e\u003e element_by_symbol = bidict({'H': 'hydrogen'})\n   \u003e\u003e\u003e element_by_symbol['H']\n   'hydrogen'\n   \u003e\u003e\u003e element_by_symbol.inverse['hydrogen']\n   'H'\n\n\nFor more usage documentation,\nhead to the :doc:`intro` [#fn-intro]_\nand proceed from there.\n\n\nEnterprise Support\n------------------\n\nEnterprise-level support for bidict can be obtained via the\n`Tidelift subscription \u003chttps://tidelift.com/subscription/pkg/pypi-bidict?utm_source=pypi-bidict\u0026utm_medium=referral\u0026utm_campaign=readme\u003e`__\nor by `contacting me directly \u003cmailto:jabronson@gmail.com\u003e`__.\n\nI have a US-based LLC set up for invoicing,\nand I have 15+ years of professional experience\ndelivering software and support to companies successfully.\n\nYou can also sponsor my work through several platforms, including GitHub Sponsors.\nSee the `Sponsoring \u003c#sponsoring\u003e`__ section below for details,\nincluding rationale and examples of companies\nsupporting the open source projects they depend on.\n\n\nVoluntary Community Support\n---------------------------\n\nPlease search through already-asked questions and answers\nin `GitHub Discussions \u003chttps://github.com/jab/bidict/discussions\u003e`__\nand the `issue tracker \u003chttps://github.com/jab/bidict/issues?q=is%3Aissue\u003e`__\nin case your question has already been addressed.\n\nOtherwise, please feel free to\n`start a new discussion \u003chttps://github.com/jab/bidict/discussions\u003e`__\nor `create a new issue \u003chttps://github.com/jab/bidict/issues/new\u003e`__ on GitHub\nfor voluntary community support.\n\n\nNotice of Usage\n---------------\n\nIf you use bidict,\nand especially if your usage or your organization is significant in some way,\nplease let me know in any of the following ways:\n\n- `star bidict on GitHub \u003chttps://github.com/jab/bidict\u003e`__\n- post in `GitHub Discussions \u003chttps://github.com/jab/bidict/discussions\u003e`__\n- `email me \u003cmailto:jabronson@gmail.com\u003e`__\n\n\nChangelog\n---------\n\nFor bidict release notes, see the :doc:`changelog`. [#fn-changelog]_\n\n\nRelease Notifications\n---------------------\n\n.. duplicated in CHANGELOG.rst:\n   (Would use `.. include::` but GitHub's renderer doesn't support it.)\n\nWatch `bidict releases on GitHub \u003chttps://github.com/jab/bidict/releases\u003e`__\nto be notified when new versions of bidict are published.\nClick the \"Watch\" dropdown, choose \"Custom\", and then choose \"Releases\".\n\n\nLearning from bidict\n--------------------\n\nOne of the best things about bidict\nis that it touches a surprising number of\ninteresting Python corners,\nespecially given its small size and scope.\n\nCheck out :doc:`learning-from-bidict` [#fn-learning]_\nif you're interested in learning more.\n\n\nContributing\n------------\n\nI have been bidict's sole maintainer\nand `active contributor \u003chttps://github.com/jab/bidict/graphs/contributors\u003e`__\nsince I started the project ~15 years ago.\n\nYour help would be most welcome!\nSee the :doc:`contributors-guide` [#fn-contributing]_\nfor more information.\n\n\nSponsoring\n----------\n\n.. duplicated in CONTRIBUTING.rst\n   (Would use `.. include::` but GitHub's renderer doesn't support it.)\n\n.. image:: https://img.shields.io/badge/GitHub-sponsor-ff69b4\n  :target: https://github.com/sponsors/jab\n  :alt: Sponsor through GitHub\n\nBidict is the product of thousands of hours of my unpaid work\nover the 15+ years that I've been the sole maintainer.\n\nIf bidict has helped you or your company accomplish your work,\nplease sponsor my work through one of the following,\nand/or ask your company to do the same:\n\n- `GitHub \u003chttps://github.com/sponsors/jab\u003e`__\n- `PayPal \u003chttps://www.paypal.com/cgi-bin/webscr?cmd=_xclick\u0026business=jabronson%40gmail%2ecom\u0026lc=US\u0026item_name=Sponsor%20bidict\u003e`__\n- `Tidelift \u003chttps://tidelift.com\u003e`__\n- `thanks.dev \u003chttps://thanks.dev\u003e`__\n- `Gumroad \u003chttps://gumroad.com/l/bidict\u003e`__\n- `a support engagement with my LLC \u003c#enterprise-support\u003e`__\n\nIf you're not sure which to use, GitHub is an easy option,\nespecially if you already have a GitHub account.\nJust choose a monthly or one-time amount, and GitHub handles everything else.\nYour bidict sponsorship on GitHub will automatically go\non the same regular bill as any other GitHub charges you pay for.\nPayPal is another easy option for one-time contributions.\n\nSee the following for rationale and examples of companies\nsupporting the open source projects they depend on\nin this manner:\n\n- `\u003chttps://engineering.atspotify.com/2022/04/announcing-the-spotify-foss-fund/\u003e`__\n- `\u003chttps://blog.sentry.io/2021/10/21/we-just-gave-154-999-dollars-and-89-cents-to-open-source-maintainers\u003e`__\n- `\u003chttps://engineering.indeedblog.com/blog/2019/07/foss-fund-six-months-in/\u003e`__\n\n.. - `\u003chttps://sethmlarson.dev/blog/people-in-your-software-supply-chain\u003e`__\n.. - `\u003chttps://www.cognitect.com/blog/supporting-open-source-developers\u003e`__\n.. - `\u003chttps://vorpus.org/blog/the-unreasonable-effectiveness-of-investment-in-open-source-infrastructure/\u003e`__\n\n\nFinding Documentation\n---------------------\n\nIf you're viewing this on `\u003chttps://bidict.readthedocs.io\u003e`__,\nnote that multiple versions of the documentation are available,\nand you can choose a different version using the popup menu at the bottom-right.\nPlease make sure you're viewing the version of the documentation\nthat corresponds to the version of bidict you'd like to use.\n\nIf you're viewing this on GitHub, PyPI, or some other place\nthat can't render and link this documentation properly\nand are seeing broken links,\ntry these alternate links instead:\n\n.. [#fn-intro] `\u003chttps://bidict.readthedocs.io/intro.html\u003e`__ | `\u003cdocs/intro.rst\u003e`__\n\n.. [#fn-changelog] `\u003chttps://bidict.readthedocs.io/changelog.html\u003e`__ | `\u003cCHANGELOG.rst\u003e`__\n\n.. [#fn-learning] `\u003chttps://bidict.readthedocs.io/learning-from-bidict.html\u003e`__ | `\u003cdocs/learning-from-bidict.rst\u003e`__\n\n.. [#fn-contributing] `\u003chttps://bidict.readthedocs.io/contributors-guide.html\u003e`__ | `\u003cCONTRIBUTING.rst\u003e`__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjab%2Fbidict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjab%2Fbidict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjab%2Fbidict/lists"}