Skip to main content

A library for parsing the french wiktionnary

Project description

WiktionnaireParser

A library for parsing the french wiktionary.

Installation

Supported Python versions : 3.6+

With Pip

pip install wiktionnaireparser

From source

python setup.py install

Usage

>>> from wiktionnaireparser import WiktionnaireParser as wiktp
>>> page = wiktp.from_source('nage PMT')
>>> page.get_etymology()
'Forme abrégée de nage avec palmes, masque et tuba.'
>>> page.get_parts_of_speech()
{'Locution nominale': ['(Plongée) Nage avec palmes, masque et tuba.']}

It is also possible to pick a word at random.

>>> page.random_page()
>>> page.get_title()
'décrocher'

Project details


Download files

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

Source Distribution

wiktionnaireparser-0.0.4.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

wiktionnaireparser-0.0.4-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file wiktionnaireparser-0.0.4.tar.gz.

File metadata

  • Download URL: wiktionnaireparser-0.0.4.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for wiktionnaireparser-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9cb832ad06287884fbb46090ed7f91fb277fe763b691a6d94c1578c6ab489486
MD5 7bbff1cb8274378b83aa408b54ec703a
BLAKE2b-256 b3de041949ff49841a3668f5db32c776dbab9e9b0de86ca0d408efe220accfe7

See more details on using hashes here.

File details

Details for the file wiktionnaireparser-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: wiktionnaireparser-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for wiktionnaireparser-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ce84d63364569b8172ba2ed93feab8678119156a406c5bbff71b79998d93edc6
MD5 c3ae7a07e3dfe11d39cbdd53b8841256
BLAKE2b-256 b31e9caf25204baa07857116bc30a80618bfe42bf56f96cb6997e58e60e9d1a3

See more details on using hashes here.

Supported by

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