Skip to main content

Country Languages is a simple tool for getting the list of official and commonly spoken languages in a specific country.

Project description

Country Languages API

Country Languages is a simple tool for getting the list of official and commonly spoken languages in a specific country.

Build Status Code Climate Prod Ready

This is a Python API Wrapper for the Country Languages API


Installation

pip install apiverve-countrylanguages

Configuration

Before using the countrylanguages API client, you have to setup your account and obtain your API Key.
You can get it by signing up at https://apiverve.com


Usage

The Country Languages API documentation is found here: https://docs.apiverve.com/api/countrylanguages.
You can find parameters, example responses, and status codes documented here.

Setup

# Import the client module
from apiverve_countrylanguages.apiClient import CountrylanguagesAPIClient

# Initialize the client with your APIVerve API key
api = CountrylanguagesAPIClient("[YOUR_API_KEY]")

Perform Request

Using the API client, you can perform requests to the API.

Define Query
query = { "name": "ZW" }
Simple Request
# Make a request to the API
result = api.execute(query)

# Print the result
print(result)
Example Response
{
  "status": "ok",
  "error": null,
  "data": {
    "country": "ZW",
    "name": "Zimbabwe",
    "officialName": "Republic of Zimbabwe",
    "officialLanguages": [
      "Chibarwe",
      "English",
      "Kalanga",
      "Khoisan",
      "Ndau",
      "Northern Ndebele",
      "Chewa",
      "Shona",
      "Sotho",
      "Tonga",
      "Tswana",
      "Tsonga",
      "Venda",
      "Xhosa",
      "Zimbabwean Sign Language"
    ],
    "officialLanguageCount": 15
  },
  "code": 200
}

Customer Support

Need any assistance? Get in touch with Customer Support.


Updates

Stay up to date by following @apiverveHQ on Twitter.


Legal

All usage of the APIVerve website, API, and services is subject to the APIVerve Terms of Service and all legal documents and agreements.


License

Licensed under the The MIT License (MIT)

Copyright (©) 2024 APIVerve, and Evlar LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apiverve_countrylanguages-1.1.7.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apiverve_countrylanguages-1.1.7-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file apiverve_countrylanguages-1.1.7.tar.gz.

File metadata

File hashes

Hashes for apiverve_countrylanguages-1.1.7.tar.gz
Algorithm Hash digest
SHA256 170213bec1a8dd02e5cda2c9e7f8697349e560f32b583e1995fbbb09a118ea1a
MD5 592b7e699786568b5bfeadc7f695a32f
BLAKE2b-256 b9a21a0dbc2ad39d44b1e98a088ed742100999f1abe4d5320c6e06fa15d76ae9

See more details on using hashes here.

File details

Details for the file apiverve_countrylanguages-1.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for apiverve_countrylanguages-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 50f82c045ee91fccd5397ae817a8ef4b685458f2e24a77d2b4810e3ef17c1081
MD5 8b08e69f029e5e4fba1ec3bd81598e1f
BLAKE2b-256 64f1603b2e183d5082277f3834411670cbfc3ef82b8f0c0b28b5f1ed8fab59c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page