semvec/pypi-packages huggingface dataset:
mecabwrap 0.3.4
Yet another interface to MeCab morphological analyzer

mecabwrap
=========

.. image:: https://travis-ci.org/kota7/mecabwrap-py.svg?branch=master
    :target: https://travis-ci.org/kota7/mecabwrap-py
.. image:: https://ci.appveyor.com/api/projects/status/oidn1rfte6u8kavs/branch/master?svg=true
    :target: https://ci.appveyor.com/project/kota7/mecabwrap-py/branch/master
.. image:: https://badge.fury.io/py/mecabwrap.svg
    :target: https://badge.fury.io/py/mecabwrap

**mecabwrap** is yet another Python interface to `MeCab Morphological
Analyzer <http://taku910.github.io/mecab/>`__.

Its goal is to provide intuitive APIs that work on Unix and Windows machines seamlessly.

Requirement
-----------

-  Python 2.7+ or 3.4+ (May also work on older versions)
-  MeCab 0.996

Installation
------------

1. Install MeCab
~~~~~~~~~~~~~~~~

**Ubuntu**

.. code:: bash

    $ sudo apt-get install mecab libmecab-dev mecab-ipadic-utf8

**Mac OSX**

.. code:: bash

    $ brew install mecab mecab-ipadic

**Windows**

Download and run the
`installer <https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7WElGUGt6ejlpVXc>`__.

See also: `official website <http://taku910.github.io/mecab/#install>`__

2. Install this Package
~~~~~~~~~~~~~~~~~~~~~~~

Install from PyPI

.. code:: bash

    $ pip install mecabwrap
    
or, from GitHub

.. code:: bash

    $ git clone --depth 1 https://github.com/kota7/mecabwrap-py.git
    $ cd mecabwrap-py
    $ pip install -U .

Quick Check
-----------

Following command will print the MeCab version. Otherwise, you do not
have MeCab installed or MeCab is not on the search path.

.. code:: bash

    $ mecab -v
    # should print `mecab of 0.996` or similar.


To verify that the package is successfully installed, try the following:

.. code:: bash

    $ python

.. code:: python

    >>> from mecabwrap import tokenize, print_token
    >>> for token in tokenize(u"すもももももももものうち"): 
    ...     print_token(token)
    ... 
    すもも 名詞,一般,*,*,*,*,すもも,スモモ,スモモ
    も   助詞,係助詞,*,*,*,*,も,モ,モ
    もも  名詞,一般,*,*,*,*,もも,モモ,モモ
    も   助詞,係助詞,*,*,*,*,も,モ,モ
    もも  名詞,一般,*,*,*,*,もも,モモ,モモ
    の   助詞,連体化,*,*,*,*,の,ノ,ノ
    うち  名詞,非自立,副詞可能,*,*,*,うち,ウチ,ウチ


Usage
-----

See the `example notebook <https://github.com/kota7/mecabwrap-py/blob/master/notebook/mecabwrap%20-%20Python%20Interface%20to%20MeCab%20for%20Unix%20and%20Windows.ipynb>`__ (or a cleaner version on `nbviewer <https://nbviewer.jupyter.org/github/kota7/mecabwrap-py/blob/master/notebook/mecabwrap%20-%20Python%20Interface%20to%20MeCab%20for%20Unix%20and%20Windows.ipynb>`__) for more detail.
simpleini 0.1.9
Simple use ini files
Requires Python: >=3.1,<4.0

This is the simplest way to interact with a single ini file to store settings. 

Attention! It is delivered together with logging to a file. You need to try to understand.

#### Use:
```python
	from simpleini import SETTINGS, logging

	parsed_data = SETTINGS(<names_settings>, <required_settings>)

	# names_settings - A string with the names of the settings stored in the file. If there is no file, it will be created and the program will be completed.
	# required_settings - comma-separated list of required variables. 'all' - to check all variables
```python


#### Example ini reader (simple mode):
```python
# Read from [DEFAULT] section
	parsed_data = SETTINGS('settings1, settings2, settings3', 'all')

	settings1 = parsed_data.settings1
	settings2 = parsed_data.settings2
	settings3 = parsed_data.settings3
```python

#### Examle ini readred
```python
parsed_data = SETTINGS()
settings1 = parsed_data.section_name.settings1
settings2 = parsed_data.section_name.settings2
settings3 = parsed_data.section_name_2.settings1
```python

#### Example with required fields
```python
settings = SETTINGS(required_fields='NEW_DEFAULT.path_default')
```python

#### Example set
```python
settings.set('test.one', 123)
```python

#### Example remove section
```python
settings.remove('section_name')
```python

#### Example remove option
```python
settings.remove('section_name.option_name')
```python

#### Example logging:
```python
	logging('message for log') # it will write a file to the project folder log.txt and it will add incoming information to it
```python