Skip to main content

synset

Project description

synset

Developer Guide

Setup

# create conda environment
$ mamba env create -f env.yml

# update conda environment
$ mamba env update -n synset --file env.yml

Install

pip install -e .

# install from pypi
pip install synset

nbdev

# activate conda environment
$ conda activate synset

# make sure the synset package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to the synset package
$ nbdev_prepare

Publishing

# publish to pypi
$ nbdev_pypi

# publish to conda
$ nbdev_conda --build_args '-c conda-forge'
$ nbdev_conda --mambabuild --build_args '-c conda-forge -c dsm-72'

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/dsm-72/synset.git

or from conda

$ conda install -c dsm-72 synset

or from pypi

$ pip install synset

Documentation

Documentation can be found hosted on GitHub repository pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

syn = synset(
    'alias', 
    'aka', 'tags', 'alts', 'names', 'labels', 'aliases', 'handles', 
    'monikers', 'codenames', 'nicknames', 'cognomen', 'sobriquets', 
    'variations', 'pseudonames', 'alternatives', 'recognized',
    'noms',     # (French, names)
    'nafn',     # (Icelandic, name)
    'nefndur',  # (Icelandic, named)
    'dulnefni', # (Icelandic, pseudonym)
    'samnefni', # (Icelandic, alias / alised)
    fullrepr=True
)
syn, syn == 'nafn'
(alias (21 aliases), True)
no_alias = synset('none', )
no_alias, no_alias == 'None'
(none (0 aliases), True)

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

synset-0.0.15.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

synset-0.0.15-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file synset-0.0.15.tar.gz.

File metadata

  • Download URL: synset-0.0.15.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for synset-0.0.15.tar.gz
Algorithm Hash digest
SHA256 7417c55c1872962f64ae1637157d49295774529e6869fd6312645a185c8d9b0e
MD5 dd14089f7e3c984423004acc6801407c
BLAKE2b-256 4a5438e34cc9d4c926c6d61142507aa6b9dda369b57f41fdf6c5b60ff8adf878

See more details on using hashes here.

File details

Details for the file synset-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: synset-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for synset-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 72213b12eeb31522db988a5dee11866902bf74d9acda6bb36c36540b3b3b775c
MD5 84c3561844829dc81fd392401d54ecea
BLAKE2b-256 bcee2acde0e0e2fdc018c3b3431349952845e6d5071e7402a3d1ba28e3307fda

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