
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
BabelFish is a Python library to work with countries and languages.
BabelFish provides scripts, countries and languages from their respective ISO standards and a handy way to manipulate them with converters.
Script representation from 4-letter code (ISO-15924):
>>> import babelfish
>>> script = babelfish.Script('Hira')
>>> script
<Script [Hira]>
Country representation from 2-letter code (ISO-3166):
>>> country = babelfish.Country('GB')
>>> country
<Country [GB]>
Built-in country converters (name):
>>> country = babelfish.Country.fromname('United Kingdom')
>>> country
<Country [GB]>
Language representation from 3-letter code (ISO-639-3):
>>> language = babelfish.Language("eng")
>>> language
<Language [en]>
Country-specific language:
>>> language = babelfish.Language('por', 'BR')
>>> language
<Language [pt-BR]>
Language with specific script:
>>> language = babelfish.Language.fromalpha2('sr')
>>> language.script = babelfish.Script('Cyrl')
>>> language
<Language [sr-Cyrl]>
Built-in language converters (alpha2, alpha3b, alpha3t, name, scope, type and opensubtitles):
>>> language = babelfish.Language('por', 'BR')
>>> language.alpha2
'pt'
>>> language.name
'Portuguese'
>>> language.scope
'individual'
>>> language.type
'living'
>>> language.opensubtitles
'pob'
>>> babelfish.Language.fromalpha3b('fre')
<Language [fr]>
BabelFish is licensed under the 3-clause BSD license
Copyright (c) 2013, the BabelFish authors and contributors.
FAQs
A module to work with countries and languages
We found that babelfish demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.