Skip to main content

A python library to conjugate spanish words with parameters tense, mood and pronoun

Project description

Spanish Conjugator 🇪🇸

GitHub Workflow Status GitHub repo size PyPI - Downloads GitHub top language GitHub

A class Conjugator containing a function conjugate which conjugates spanish verbs by tense, mood and pronoun.

Installation

pip install spanishconjugator

Example usage

Example python usage; the conjugate function of the Conjugator Class takes 4 parameters being root-verb, tense, mood, pronoun respectively

from spanishconjugator import Conjugator
imperfect_conjugation = Conjugator().conjugate('hablar','imperfect','indicitive','yo')
print(imperfect_conjugation)
>>> hablaba

Developing

if you would like to help develop spanishconjugator, follow succeeding code

Whilst in command line create a folder in which you would like to work (name only reccommended)

$ mkdir spanish_conjugator_enviroment

change directory into the enviroment you have just made

$ cd spanish_conjugator_enviroment

install virtualenv

$ pip install virtualenv

create a virtual enviroment from path of python3

$ virtualenv -p $(which python3) my_venv

activate virtual enviroment

$ source my_venv/bin/activate

tip: once you want to disactivate your virtual enviroment simply run $ deactivate

Clone Spanish-Conjugator

$ git clone https://github.com/Benedict-Carling/spanish-conjugator.git

Install developer dependencies for unit test e.g pytest and for other library tools

pip install -e .[dev]

Developing - Testing

We have chosen to use the library pytest for our unit test At this point in the developing guide you can check the code works by running it against out current unit tests located in the /tests folder

$ pytest

Developing - Submission

to submit code to this repositry please fork and submit a pull request 🚀

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

spanishconjugator-2.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

spanishconjugator-2.1.1-py2-none-any.whl (3.8 kB view details)

Uploaded Python 2

File details

Details for the file spanishconjugator-2.1.1.tar.gz.

File metadata

  • Download URL: spanishconjugator-2.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for spanishconjugator-2.1.1.tar.gz
Algorithm Hash digest
SHA256 2c4a42616098e552cd67e52d22f24a7d2c2969a618284dd4e394d07ad2b8ef5f
MD5 ecf1ae902a3ebbe2af2e77fb80ec4b05
BLAKE2b-256 03c94d9a0d0bb7aad8867c337e443efdec8af213eb5195af181f838863cbca57

See more details on using hashes here.

File details

Details for the file spanishconjugator-2.1.1-py2-none-any.whl.

File metadata

  • Download URL: spanishconjugator-2.1.1-py2-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.0

File hashes

Hashes for spanishconjugator-2.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 3ba5cdfb39cfc4ac5d02e54d7d4d1771e90232361f5efbac79f63f923187b377
MD5 c6867dddca1a4779f93e67bc325a608a
BLAKE2b-256 c92438ae81793cd7ed7d2300a3628176a43bd895ee103b4b7efa7467bfcb59ff

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