semvec/pypi-packages huggingface dataset:
gassist-text 0.0.14
A Python library for interacting with Google Assistant API via text
Requires Python: >=3.11

# gassist_text

A Python library for interacting with Google Assistant API via text.

## Credits

Uses <https://pypi.org/project/google-assistant-grpc/>. See instructions there how to get `credentials.json`.

Code is essentially a copy of <https://github.com/googlesamples/assistant-sdk-python/blob/master/google-assistant-sdk/googlesamples/assistant/grpc/textinput.py> wrapped in a package.

## Example

```python
import json
import google.oauth2.credentials
with open('/path/to/credentials.json', 'r') as f:
    credentials = google.oauth2.credentials.Credentials(token=None, **json.load(f))

from gassist_text import TextAssistant
with TextAssistant(credentials) as assistant:
    print(assistant.assist('tell me a joke')[0])
    print(assistant.assist('another one')[0])
```

## Limitations/Known issues

If you see the issued commands in [My Google Activity](https://myactivity.google.com/myactivity) the library is working fine. If the commands don't have the expected outcome, don't open an issue in this repository. You should instead report the issue directly to [Google](https://github.com/googlesamples/assistant-sdk-python/issues). Examples of known Google Assistant API issues:

- Broadcast commands don't work unless speakers and device that runs this library are in the same network and IPv6 is disabled in the router
- Most queries for media controls don't work
  - not working: e.g. play music on kitchen speaker, stop kitchen speaker
  - working: e.g. play news on kitchen speaker, play rain sounds on bedroom speaker
- Routines don't work
- Commands that need to verify your identity through voice match don't work

To get personal results working you need to create an OAuth client ID of Desktop app, see step by step instructions [in this article](https://www.home-assistant.io/integrations/google_assistant_sdk/#enable-personal-results-for-advanced-users).

## Development environment

```sh
python3 -m venv .venv
source .venv/bin/activate
# for Windows CMD:
# .venv\Scripts\activate.bat
# for Windows PowerShell:
# .venv\Scripts\Activate.ps1

# Install dependencies
python -m pip install --upgrade pip
python -m pip install -e .

# Generate embedded_assistant_pb2.py and embedded_assistant_pb2_grpc.py
python -m pip install grpcio-tools
python -m grpc_tools.protoc -Isrc --python_out=src --grpc_python_out=src src/google/assistant/embedded/v1alpha2/embedded_assistant.proto

# Run pre-commit
python -m pip install pre-commit
pre-commit autoupdate
pre-commit install
pre-commit run --all-files

# Alternative: run formatter, lint
python -m pip install isort black flake8 ruff
isort . ; black . ; flake8 . ; ruff check . --fix

# Run tests
python -m pip install pytest
pytest

# Run command line interactive tool
python -m pip install click beautifulsoup4
python demo.py --display --audio_out

# Build package
python -m pip install build
python -m build
```
scipion-em-cryoten 1.0.0
Cryoten plugin for Scipion
Keywords: scipion cryoem imageprocessing scipion-3.0 datasimulation

====================
Cryoten  plugin
====================

This plugin provide a wrapper for `Cryoten <https://github.com/jianlin-cheng/cryoten>`_ which efficiently enhances Cryo-EM Density Maps using transformers


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

a) Stable version

.. code-block::

    scipion3 installp -p scipion-em-cryoten

b) Developer's version

    * download repository

    .. code-block::

        git clone https://github.com/scipion-em/scipion-em-cryoten.git

    * install

    .. code-block::

        scipion3 installp -p path_to_scipion-em-cryoten --devel

Cryoten will be installed automatically with the plugin using a Conda environment.


Configuration variables
.......................

There are some variables related to the cryoten installation. If you have installed
cryoten within Scipion, you may define `CRYOTEN_ENV_ACTIVATION` for specifying
how to activate the environment. This variable with be used together with the general
conda activation to generate the final cryoten command. For example:

.. code-block::

    CRYOTEN_ENV_ACTIVATION = conda activate cryoten_env

If this variable is not defined, a default value will be provided that will work if the
latest version is installed.

If cryoten is installed already outside Scipion, one could define `MODEL_ANGELO_ACTIVATION`.
This variable will provide an activation (or load) command that can be anything and the Scipion
conda activate will not be prepended. For example (loading cryoten as a module):

.. code-block::

    MODEL_ANGELO_ACTIVATION = module load cryoten/main

If you need to use CUDA different from the one used during Scipion installation (defined by *CUDA_LIB*), you can add *MODEL_ANGELO_CUDA_LIB* variable to the config file.

Protocols
---------

* Model builder

Tests
-----

* scipion3 tests cryoten.tests.tests_cryoten.TestCryoten