semvec/pypi-packages huggingface dataset:
invisibleroads-macros-configuration 1.0.8
Shortcut functions for configuration operations
Keywords: invisibleroads

# Shortcut Functions for Configuration Operations

Here are various macros for loading configuration files.

## Install

    pip install -U invisibleroads-macros-configuration

## Test

    git clone https://github.com/invisibleroads/invisibleroads-macros-configuration
    cd invisibleroads-macros-configuration
    pip install -e .[test]
    pytest --cov=invisibleroads_macros_configuration --cov-report term-missing tests

# 1.0
- Add fill_environment_variables, fill_extensions, fill_secrets
- Restore Settings, set_default
- Restore load_attributes, load_attribute, load_json
ankidecks 0.0.1
Create anki cards and export its in .apkg
Requires Python: >=3.6

# Create anki cards and export it in .apkg

## How to install

```bash
pip3 install ankidecks
```


## How it works
The first step is to create a new deck:

`deck` - is a deck of cards.

If you want to create new deck :
```python
deck = getEmptyCol()
```
 Add a new card:

`front` - it's the front side of the card

`back` - it's a backside of card. 

`answer` - it's an extra field for input type card.

`css` - it's a style of card.


```python
add_new_card(deck, front, back,
                css=None, explination=None)
```
If you want to add an image, you need to:

`image` - it's a binary format of the image

`name_deck` - it's a name of deck it will use for the name of the image.

`extension_image` - it's an extension for image.

```python
add_image(deck,image,name_deck='example',extension_image='.jpeg')
```

Export in .apkg extension:

`export_path` - it's the path where you will upload the file.

```python
export_ankipkg(deck,export_path)
```

# Examples
```python
def create_anki_cards():
    #create new deck
    deck = getEmptyCol()
    
    #add new baicCard to deck
    add_new_card(deck,front,back)
    
    #add new inputCard to deck with new css 
    add_new_card(deck,front,back,css=css, explination=explination)
    
    #upload image to media deck
    add_image(deck,image,image_name='expame',extension_image='.jpeg')
    
    #export deck in .apkg
    export_ankipkg(deck,export_path)
        
      
```
inotify-lite 0.0.6
Linux inotify wrapper
Requires Python: >=3.6

.. image:: https://readthedocs.org/projects/inotify-lite/badge/?version=latest
  :target: https://inotify-lite.readthedocs.io/en/latest/?badge=latest
  :alt: Documentation Status

inotify_lite
=============

``inotify_lite`` provides a Python 3 wrapper around the Linux ``inotify`` API. This lets you monitor filesystem events, and execute callbacks. See ``inotify(7)``.

* homepage_
* documentation_
* `issue tracker`_

Requires
--------

* Linux >= 2.6.13 (or glibc >= 2.5)
* Python >= 3.6

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

Install ``inotify_lite`` by running:

    pip install inotify_lite

Usage
-----

To use ``inotify_lite``:

- Create an ``Inotify`` instance, passing the name of the files (or directories) you wish to watch;
- Register a handler (or many), a callable of two arguments:

  + an ``Inotify`` instance; and
  + an ``InotifyEvent`` instance.

- call ``Inotify.read`` to read once, or ``Inotify.watch`` to watch until a keyboard interrupt is received.

Examples:

.. code-block:: python

    def my_callback(_, event):
        print(event.name)
        print(event.mask)

    flags = INFlags.CREATE | INFlags.DELETE
    watcher = Inotify("/home/", watch_flags=flags)
    watcher.register_handler(INFlags.ALL_FLAGS, my_callback, exclusive=False)
    watcher.watch()

.. code-block:: python

    def my_callback(_, event):
        print(event.name)
        print(event.mask)

    watcher = TreeWatcher("/home/", watch_flags=INFlags.OPEN, timeout=10)
    # Watch the home directory for OPEN events with a 10 second timeout.

    watcher.register_handler(INFlags.ALL_FLAGS, my_callback, exclusive=False)
    watcher.read_once()

The ``TreeWatcher`` class is provided to recursively watch directories.

See the documentation_ for details and options.

Contribute
----------

Contributions are welcome. Open an issue_ for visibility.

To install the dev requirements run ``python setup.py -e .[dev]``.

To run the tests run ``make test``.

Code should be formatted with black.

* Issue Tracker: https://github.com/jams2/inotify_lite/issues
* Source Code: https://github.com/jams2/inotify_lite.git

Support
-------

Open an issue_.


License
-------

The project is licensed under GPLv3.

.. _inotify_lite: https://github.com/jams2/inotify_lite
.. _homepage: https://github.com/jams2/inotify_lite
.. _documentation: https://inotify-lite.readthedocs.io
.. _`issue tracker`: https://github.com/jams2/inotify_lite/issues
.. _issue : https://github.com/jams2/inotify_lite/issues
ankideck 0.0.1
Create anki cards and export its in .apkg
Requires Python: >=3.6

# Create anki cards and export it in .apkg

## How to install

```bash
pip3 install ankideck
```


## How it works
The first step is to create a new deck:

`deck` - is a deck of cards.

If you want to create new deck :
```python
    deck = getEmptyCol()
```
 Add a new card:

`front` - it's the front side of the card

`back` - it's a backside of card. 

`answer` - it's an extra field for input type card.

`css` - it's a style of card.


```python
add_new_card(deck, front, back,
                css=None, explination=None)
```
If you want to add an image, you need to:

`image` - it's a binary format of the image

`name_deck` - it's a name of deck it will use for the name of the image.

`extension_image` - it's an extension for image.

```python
add_image(deck,image,name_deck='example',extension_image='.jpeg')
```

Export in .apkg extension:

`export_path` - it's the path where you will upload the file.

```python
export_ankipkg(deck,export_path)
```

# Examples
```python
def create_anki_cards():
    #create new deck
    deck = getEmptyCol()
    
    #add new baicCard to deck
    add_new_card(deck,front,back)
    
    #add new inputCard to deck with new css 
    add_new_card(deck,front,back,css=css, explination=explination)
    
    #upload image to media deck
    add_image(deck,image,image_name='expame',extension_image='.jpeg')
    
    #export deck in .apkg
    export_ankipkg(deck,export_path)
        
      
```
anki-deck 0.0.1
Create anki cards and export its in .apkg
Requires Python: >=3.6

# Create anki cards and export it in .apkg

## How to install

```bash
pip3 install anki_deck
```


## How it works
The first step is to create a new deck:

`deck` - is a deck of cards.

If you want to create new deck :
```python
    deck = getEmptyCol()
```
 Add a new card:

`front` - it's the front side of the card

`back` - it's a backside of card. 

`answer` - it's an extra field for input type card.

`css` - it's a style of card.


```python
add_new_card(deck, front, back,
                css=None, explination=None)
```
If you want to add an image, you need to:

`image` - it's a binary format of the image

`name_deck` - it's a name of deck it will use for the name of the image.

`extension_image` - it's an extension for image.

```python
add_image(deck,image,name_deck='example',extension_image='.jpeg')
```

Export in .apkg extension:

`export_path` - it's the path where you will upload the file.

```python
export_ankipkg(deck,export_path)
```

# Examples
```python
from anki_export import *

def create_anki_cards():
    #create new deck
    deck = getEmptyCol()
    
    #add new baicCard to deck
    add_new_card(deck,front,back)
    
    #add new inputCard to deck with new css 
    add_new_card(deck,front,back,css=css, explination=explination)
    
    #upload image to media deck
    add_image(deck,image,image_name='expame',extension_image='.jpeg')
    
    #export deck in .apkg
    export_ankipkg(deck,export_path)
        
      
```
Anki-Deck 0.0.1
Create anki cards and export its in .apkg
Requires Python: >=3.6

# Create anki cards and export it in .apkg

## How to install

```bash
pip3 install anki_export
```


## How it works
The first step is to create a new deck:

`deck` - is a deck of cards.

If you want to create new deck :
```python
    deck = getEmptyCol()
```
 Add a new card:

`front` - it's the front side of the card

`back` - it's a backside of card. 

`answer` - it's an extra field for input type card.

`css` - it's a style of card.


```python
add_new_card(deck, front, back,
                css=None, explination=None)
```
If you want to add an image, you need to:

`image` - it's a binary format of the image

`name_deck` - it's a name of deck it will use for the name of the image.

`extension_image` - it's an extension for image.

```python
add_image(deck,image,name_deck='example',extension_image='.jpeg')
```

Export in .apkg extension:

`export_path` - it's the path where you will upload the file.

```python
export_ankipkg(deck,export_path)
```

# Examples
```python
from anki_export import *

def create_anki_cards():
    #create new deck
    deck = getEmptyCol()
    
    #add new baicCard to deck
    add_new_card(deck,front,back)
    
    #add new inputCard to deck with new css 
    add_new_card(deck,front,back,css=css, explination=explination)
    
    #upload image to media deck
    add_image(deck,image,image_name='expame',extension_image='.jpeg')
    
    #export deck in .apkg
    export_ankipkg(deck,export_path)
        
      
```