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.5.tar.gz (4.1 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.5-py2-none-any.whl (6.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: spanishconjugator-2.1.5.tar.gz
  • Upload date:
  • Size: 4.1 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.5.tar.gz
Algorithm Hash digest
SHA256 8fa0f6fc864cdddeeea1036d0009ea6b007358dc6fd26ab401b99650264fd73d
MD5 db1b09a675525e3360918aeda3abc9d6
BLAKE2b-256 bd268916e1573fc6dbbafb6290cc2a7432e0f39520d092ed8b7bba83ead4049d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spanishconjugator-2.1.5-py2-none-any.whl
  • Upload date:
  • Size: 6.9 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.5-py2-none-any.whl
Algorithm Hash digest
SHA256 86c0c80f28fc528107863f6ad55b2591076f0a5d782447818bf1b0dd6d68e64d
MD5 447ab4df5fe5f02f9d40b33bf31cf014
BLAKE2b-256 b5b905d51b199b23e2bb997e758ef0425c68775f05602948c2336f2410aafd41

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