semvec/pypi-packages huggingface dataset:
partifact 0.4.0
CodeArtifact utilties for Poetry
License: MIT
Requires Python: <4.0,>=3.10

# partifact

partifact is a tool to help with configuring and authenticating CodeArtifact as a repository for [Poetry](https://github.com/python-poetry/poetry) and [pip](https://pip.pypa.io/en/stable/).

[AWS CLI](https://docs.aws.amazon.com/cli/latest/reference/codeartifact/login.html) offers functionality to configure CodeArtifact for pip.
This tool offers the following improvements over the CLI:
1. Poetry support.
1. Assuming an AWS role to get the token. This is handy in automated pipelines, which may have the access key and secret key as environment variables,
  but want to install packages from CodeArtifact on a different account.
1. Configuration persisted in a config file, making the tool more convenient to use than the CLI with the options it requires to be passed in from the command line.


# How to use it?

Install partifact from pypi using pip the usual way:

```shell
pip install partifact
```

It's best to do this globally, rather than inside the virtualenv.

Before you can use partifact, the Poetry source repository needs to be
[configured](https://python-poetry.org/docs/repositories/#install-dependencies-from-a-private-repository)
in `pyproject.toml`.

```toml
[[tool.poetry.source]]
name = "my-repo"
url = "https://{code_artifact_domain}-{aws_account}.d.codeartifact.{aws_region}.amazonaws.com/pypi/{code_artifact_repository}/simple/"
default = true  # if this should be the default repository to install from
```

If you are publishing to the repository, the `/simple/` suffix is not required at the end.

Once Poetry is configured, you can use the partifact command to authenticate:

```shell
partifact login my-repo
```

> **NOTE**: Make sure your run the command from the directory where your `pyproject.toml` is!


Optionally, you can pass in an AWS profile and/or AWS role to use
for CodeArtifact token generation.

```shell
partifact login myrepo --profile myprofile
partifact login myrepo --role myrole
```

If you would also like to configure `global.index-url` in the `pip` config,
you can do so through the `--configure-pip` flag.

```shell
partifact login myrepo --profile myprofile --configure-pip
```

# Known issues

1. The `CodeArtifact` token seems to exceed the maximum length allowed in Windows Credential Manager, resulting
in a misleading `(1783, 'CredWrite', 'The stub received bad data.')` error. The library has been tested on macOS.
magic-flow 0.1.11
Python SDK for the Flow blockchain with updated dependencies and Python 3.13 support
License: MIT
Requires Python: <4.0,>=3.10

# Magic Flow Python SDK

A comprehensive Python SDK for building applications that interact with the Flow blockchain network. This SDK provides a complete set of tools for developers to query, transact, and build on Flow.

[![PyPI](https://img.shields.io/pypi/v/magic-flow.svg)](https://pypi.org/project/magic-flow/)
[![codecov](https://codecov.io/gh/magiclabs/magic-flow-python/branch/master/graph/badge.svg)](https://codecov.io/gh/magiclabs/magic-flow-python)
[![Python](https://img.shields.io/pypi/pyversions/magic-flow.svg)](https://pypi.org/project/magic-flow/)
[![License](https://img.shields.io/pypi/l/magic-flow.svg)](https://pypi.org/project/magic-flow/)

## Features

- 🔗 **Complete Flow Integration** - Full support for Flow blockchain operations
- 🚀 **Async/Await Support** - Modern Python async programming patterns
- 🔐 **Advanced Signing** - Support for complex transaction signing scenarios
- 📊 **Query Capabilities** - Query blocks, accounts, events, and transactions
- 🛠️ **Script Execution** - Execute Cadence scripts on the Flow network
- 🏗️ **Account Management** - Create and manage Flow accounts
- 📝 **Contract Deployment** - Deploy, update, and manage smart contracts
- 🧪 **Emulator Compatible** - Works with Flow Emulator for local development

## Quick Start

### Installation

Requires Python 3.10 or higher.

```bash
pip install magic-flow
```

Or with Poetry:

```bash
poetry add magic-flow
```

### Basic Usage

```python
import asyncio
from magic_flow.client import flow_client

async def main():
    async with flow_client(host="127.0.0.1", port=3569) as client:
        # Get the latest block
        block = await client.get_latest_block()
        print(f"Latest block height: {block.height}")

        # Get account information
        account = await client.get_account(address="0x01")
        print(f"Account balance: {account.balance}")

if __name__ == "__main__":
    asyncio.run(main())
```

## Documentation

- 📖 **[Complete Guide](https://magiclabs.github.io/magic-flow-python/python_SDK_guide/)** - Comprehensive documentation
- 🔧 **[API Reference](https://magiclabs.github.io/magic-flow-python/api_docs/)** - Detailed API documentation
- 💡 **[Examples](https://magiclabs.github.io/magic-flow-python/examples/)** - Code examples and tutorials

## Development

This SDK is fully compatible with the Flow Emulator and can be used for local development.

### Requirements

- Python 3.10+
- Flow Emulator (for local development)

### Contributing

We welcome contributions! Please see our [Contributing Guide](docs/contributing.md) for details.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Contributors

<a href="https://github.com/magiclabs/magic-flow-python/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=magiclabs/magic-flow-python" />
</a>

Made with [contrib.rocks](https://contrib.rocks).