semvec/pypi-packages huggingface dataset:
azure-cli-nspkg 3.0.4
Microsoft Azure CLI Namespace Package
License: MIT

Microsoft Azure CLI Namespace Package
=====================================

This is the Microsoft Azure CLI namespace package.

This package is not intended to be installed directly by the end user.

It provides the necessary files for other packages to extend the azure cli namespaces.


.. :changelog:

Release History
===============
3.0.4
+++++
* Indicate Python 3.7 support.

3.0.3
++++++
* Minor fixes.

3.0.2
+++++
* minor fixes

3.0.1
+++++
* minor fixes

3.0.0 (2016-04-28)
++++++++++++++++++

* New nspkg structure.

2.0.0 (2016-02-27)
++++++++++++++++++

* GA release.

0.1.2 (2016-01-30)
++++++++++++++++++

* Support Python 3.6.

0.1.1 (2016-01-17)
++++++++++++++++++

* Stable release (no code changes since previous version).

0.1.0b11 (2016-12-12)
+++++++++++++++++++++

* Preview release.
azure-cli-command-modules-nspkg 2.0.3
Microsoft Azure CLI Command Modules Namespace Package
License: MIT

Microsoft Azure CLI Command modules Namespace Package
=====================================================

This is the Microsoft Azure CLI command module namespace package.

This package is not intended to be installed directly by the end user.

It provides the necessary files for other packages to extend the azure cli command module namespaces.


.. :changelog:

Release History
===============
2.0.3
+++++
* Indicate Python 3.7 support.

2.0.2
++++++
* Minor fixes.

2.0.1
+++++
* minor fixes

2.0.0 (2017-04-28)
++++++++++++++++++
* Initial release
vcache 0.0.7
Python implementation of go-redis/cache
License: MIT
Keywords: cache,localcache

# vcache

阅读 [`go-redis/cache`](https://github.com/go-redis/cache) 的代码后，为了理解原代码，遂用Python 实现了一个版本。

*（py3.7 编写，其他版本未经测试）*

## Feature

- 支持缓存 Python的所有内置对象以及自定义类实例
- 支持自定义 local_cache

## Install

```
pip install vcache
```


## Usage

### without redis

```python
>>> from vcache import Cache, Item
>>> value = "Hello, World, Hello 中国"
>>> key = "key"
>>> item = Item(key, value)
>>> cache = Cache()
>>> cache.set(item)
True
>>> cache.get(key)
'Hello, World, Hello 中国'
>>>
```

### use redis

```python
>>> from redis import Redis
>>> from vcache import Cache, Item, Option
>>> r = Redis(host='localhost', port=6379, db=0)
>>> opt = Option(redis=r, stats_enabled=True)
>>> cache = Cache(opt=opt)
>>> value = "Hello, World, Hello 中国"
>>> key = "key"
>>> item = Item(key, value)
>>> cache.set(item)
True
>>> cache.get(key)
'Hello, World, Hello 中国'
>>> cache.get(key, skip_local_cache=True)
'Hello, World, Hello 中国'
```

## Test

```shell
pip install -r req-test.txt
python -m pytest test_vcache.py -v
```

## Link

- [https://github.com/vimiix/vcache](https://github.com/vimiix/vcache)

- [https://github.com/go-redis/cache](https://github.com/go-redis/cache)