semvec/pypi-packages huggingface dataset:
alt-discord-flags 0.0.5
A Discord.py extension allowing you to pass flags as arguments.
License: MIT

This is an alternative to XuaTheGrate/Flag-Parsing, which is not maintained.

⚠ Please be sure to read the entire README, it explains
some important tricks.

# Flag Parsing
A util for discord.py bots that allow passing flags into commands.

To install, run the following command:
```
pip install alt-discord-flags
```

**2.1.0 changes how signatures appear. If you wish to use
the legacy signatures, use `command.old_signature` instead.**

Basic example usage:

```python
import discord
from discord.ext import flags, commands

bot = commands.Bot("!")

# Invocation: !flags --count=5 --string "hello world" --user Xua --thing y

@flags.add_flag("--count", type=int, default=10)
@flags.add_flag("--string", default="hello!")
@flags.add_flag("--user", type=discord.User)
@flags.add_flag("--thing", type=bool)
@flags.command()
async def flags(ctx, **flags):
    await ctx.send("--count={count!r}, --string={string!r}, --user={user!r}, --thing={thing!r}".format(**flags))
bot.add_command(flags)
```

Important note that `@flags.command` MUST be under all `@flags.add_flag`
decorators.

`@flags.add_flag` takes the same arguments as `argparse.ArgumentParser.add_argument`
to keep things simple.

Subcommands are just as simple:
```python
@commands.group()
async def my_group(ctx):
    ...

@flags.add_flag("-n")
@my_group.command(cls=flags.FlagCommand)
async def my_subcommand(ctx, **flags):
    ...
```

Usage of discord.py's `consume rest` behaviour is not perfect with `discord-flags`,
meaning that you have to use a flag workaround:
```python
@flags.add_flag("message", nargs="+")
@flags.command()
async def my_command(ctx, arg1, **options):
    """ You can now access `message` via `options['message']` """
    message = ' '.join(options['message'])
```
elastic-agent-setup 0.0.11
A Python package used to install and enroll the Elastic Agent on multiple operating systems. Created using carcass
License: MIT
Requires Python: >=3.6, <4
Keywords: carcass

# elastic-agent-setup

A python package to install and enroll an Elastic Agent on multiple host operating systems.

## Getting Started

In order to use this package you must configure general settings for your environment. Here is an example of the configuration options:

```python
from elastic_agent_setup import ElasticAgent

agent = ElasticAgent()
agent.configure(
    username='admin', 
    password='some_password'
    elasticsearch='https://elasticsearch:9200',
    kibana='https://kibana:5601',
    certificate_authority=None,
    verify_ssl=True
)
```

Once you have configured the `elastic-agent-setup` package you can either `install` or `enroll` your elastic-agent.

> Please see Elatics documentation on the differences between enrolling and installing an agent.

Here is an example of installing an Elastic Agent:

```python
from elastic_agent_setup import ElasticAgent

agent = ElasticAgent()
agent.configure(
    username='admin', 
    password='some_password'
    elasticsearch='https://elasticsearch:9200',
    kibana='https://kibana:5601',
    certificate_authority=None,
    verify_ssl=True
)

response = agent.install(
    version='7.12.1,
    preflight_check=True
)

print(response)
```

## Built With

* [carcass](https://github.com/MSAdministrator/carcass) - Python packaging template

## Contributing

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

## Versioning

We use [SemVer](http://semver.org/) for versioning. 

## Authors

* Josh Rickard - *Initial work* - [MSAdministrator](https://github.com/MSAdministrator)

See also the list of [contributors](https://github.com/MSAdministrator/elastic-agent-setup/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details
calcymath 0.0.6
A simple math library
License: MIT
Requires Python: >=3.7

# calcy-math
## _A Simple Math Library_

[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)

## Installation

Install calcymath

```
cd my_app
pip install calcymath
```

Importing calcymath

```
from calcymath import *
```

Running Server

```
python app.py
```