semvec/pypi-packages huggingface dataset:
akamai-purge-cache 1.2.0
Marriott CDN Team Fastpurge POC script
Requires Python: >=3.10

# akamai-purge-cache : interactive python script

## Python Script

```python
from fastpurge import FastPurgeClient
import click

@click.command()
@click.option('paths', '--path', '-p', multiple=True, help="A single URL to Purge (This option is repeatable for additional URLs)")
@click.option('--dryrun', '-d', is_flag=True, help="Just print the command and args that will be run and exit")

def mgpurge(paths: list[str], dryrun: bool):
  # Omit credentials to read from ~/.edgerc
  client = FastPurgeClient()
  if dryrun:
    print('These paths will be purged:')
    for path in paths:
      click.echo(path)
  else:

    # Start purge of some URLs
    mgpurge = client.purge_by_url(paths)
    # purge is a Future, if we want to ensure purge completed
    # we can block on the result:
    result = mgpurge.result()
    # print("Purge completed:")
    print("Purge completed:", result)
  
if __name__ == "__main__":
  mgpurge()
```

## TO-DO
- Document local installation
- Document local run
- Document building
- Document publishing to PY-Pi
- Document remote installation and usage
PythonMetaTrader5swafderdrfefsawed 0.0.5
Connect MT5 with Python
Requires Python: >=3.6

# Python Library for MetaTrader 5 Connection

![MetaTrader 5]
This Python library enables you to connect with the MetaTrader 5 trading platform and interact with its features using Python. It allows executing trading operations, fetching market data, receiving notifications, and more.

## Requirements

To use this library, you need:

- MetaTrader 5 installed on your device.
- A trading account on the MetaTrader 5 platform (Demo or Live) that you can log in to.
- Python version 3.x installed on your device.

## Installation

To install the library, use `pip`:

```bash
pip install library_name
```
#Getting Started

Import the library in your Python script:

``import library_name
``

Connect to the MetaTrader 5 platform:

``mt5 = library_name.MetaTrader5()
mt5.connect()
``

Log in to your trading account:

``mt5.login(login='your_login', password='your_password')
``

Execute trading operations, fetch market data, etc. Examples:

```# Execute a buy order
mt5.buy(symbol='EURUSD', volume=0.1, sl=1.2000, tp=1.2500)

# Get the current price for a symbol
price = mt5.get_symbol_price('EURUSD')
print("Current price for EURUSD:", price)

# Fetch historical data for a symbol
history_data = mt5.get_symbol_history('EURUSD', timeframe='H1', from_date='2023-01-01', to_date='2023-07-31')
```

After using the library, you can disconnect:

```
mt5.disconnect()
```