semvec/pypi-packages huggingface dataset:
uupy 0.1.0
Unofficial UUP Client with storage
Requires Python: >=3.6

# UUPy

UUPy is a Python library for acquisition and storage of updates obtained from Microsoft's Unified Update Platform.

## Installation

Use [pip](https://pip.pypa.io/en/stable/) to install uupy.
```bash
pip install uupy
```

## Usage
```python
from uupy.uupmanager import UUPManager
from uupy.packetmanagers import FilePacketManager

import logging
import urllib3

urllib3.disable_warnings()
logging.basicConfig(level=logging.DEBUG)


u = UUPManager(FilePacketManager("./out"))

# returns a list of fetched packets and adds them to the packet manager
u.fetch_updates('Dev', 'External', '10.0.21000.1', ['amd64', 'arm64', 'x86'], 48)

# commits changes (in this case by overwriting ./out/summaries file)
u.packetmanager.sync()

# shows info about stored updates
for up in u.list_updates():
  print("%s %srev%s %s" % (up.title, up.updateID, up.revisionNumber, up.arch))

# picks the first amd64 packet
pkg = next(filter(lambda x: x.arch == "amd64", u.list_updates()))

print(pkg.updateName)
print(pkg.timestamp)
print(pkg.languages())
print(pkg.editions("en-us"))

# generates download information for update
print(u.get(pkg, "en-us", ["professional", "core"]))
```
`VolatilePacketManager` can be used in order to avoid non-volatile storage of packets (as was the case with FilePacketManager).
```python
from uupy.uupmanager import UUPManager
from uupy.packetmanagers import VolatilePacketManager

u = UUPManager(VolatilePacketManager())
```
`OverlayingPacketManager` is quite simillar to [OverlayFS](https://www.kernel.org/doc/html/latest/filesystems/overlayfs.html).
```python
from uupy.uupmanager import UUPManager
from uupy.packetmanagers import VolatilePacketManager, FilePacketManager, OverlayingPacketManager

upper = VolatilePacketManager()
lower = FilePacketManager("./out")

# packets are saved to `upper` and read from both
u = UUPManager(OverlayingPacketManager(upper, lower))
```
`HTTPPacketManager` allows for retrieval of packets over HTTP.
```python
from uupy.uupmanager import UUPManager
from uupy.packetmanagers import VolatilePacketManager, HTTPPacketManager, OverlayingPacketManager

u = UUPManager(OverlayingPacketManager(
  VolatilePacketManager(), HTTPPacketManager("http://localhost:8000/"))
```

## License

[AGPL-3.0](https://www.gnu.org/licenses/)
hedera-cli 0.1.2.post1
Hedera CLI in Python
Requires Python: >=3.6

# hedera-cli-py
[Hedera](https://hedera.com/) CLI in Python


## Install

    pip install hedera-cli

## How to Use

Just run:

    hedera-cli

Since hedera-cli depends on [hedera-sdk-py](https://github.com/wensheng/hedera-sdk-py), which requires Java >= 11, please make sure your JAVA_HOME environment is set up correctly.

You can run `setup` inside hedera-cli and enter your account ID and private key.  You can also put them in an .env file to be read automatically at hedera-cli startup.  To use a different env file, just use the filename as the argument for hedera-cli.  For example:

    hedera-cli mainnet.env

A sample env file `sample.env` is provided.

## commands

Type ? or `help` for a list of commands.  Type `?command` for help on a specific command, for example `?topic`. 

### setup

Set up the client.

### account

    account create  (create an account, account id and privatekey will be printed)

    account info [accoun_id]  (get account info for current account if no accountId is provided,
                               or for a different account if accountId is provided)

    account balance [account_id]  (get account balance for current account if no accountId,
                                   or for a different account if accountId is provided)

    account delete account_id  (delete the account identified by accountId.
                                    you will be prompted for that account's private key)

### file

    file create [file_path]
    file info file_id
    file contents file_id
    file append file_id [file_path]
    file delete file_id

### send

    send  (no argument, you will prompted for recipient account and amount)

### topic

    topic create [memo]  (create a topic with an optional memo)
    topic info topic_id  (get info about a topic)
    topic send topic_id message [[message]]  (send message to topic_id)
    topic get topic_id [sequence_number]  (get topic message(s).  If you specify a sequence_number,
                                           you get one message, otherwise, you get all the messages on the topic)

### keygen

Create a key pair.

### network

Switch network

### exit

Exit the CLI