semvec/pypi-packages huggingface dataset:
pastebin-replace 0.1.1
Replace local files with code from a pastebin link
Requires Python: >=3.8
Keywords: development,download,pastebin,productivity

# pastebin-replace

Small, simple python package to replace a file with raw code from Pastebin.

## Installation

#### From Source

```bash
pip install .
```

#### With pip (PyPI)

```bash
pip install pastebin-replace
```

## Usage

#### Within Python Script
```python
pbreplace(path, link)
```

#### Terminal
```bash
pbreplace <path> <link>
```

## Example

Suppose you have an empty file named `test.txt` located in `C:\Users\Yourname\Downloads\test.txt`. And you know a public Pastebin `https://pastebin.com/hcv2WRnX` containing some text. You want the content of `test.txt` to be like the text on the Pastebin link.

You can write this with Python:
```python
from pastebin_replace import pbreplace

pbreplace(r"C:\Users\Yourname\Downloads\test.txt", "https://pastebin.com/hcv2WRnX")
```

Or directly from terminal:
```bash
pbreplace C:\Users\Yourname\Downloads\test.txt https://pastebin.com/hcv2WRnX
```

### Note
Replaced file can't be recovered. Be careful on the path you provided.

### Background
Why did I make this? I need this package for a specific usage in my Google Colab workflow.

### Special Thanks
[pastebin-as-file](https://github.com/K0IN/pastebin-as-file) repo for the PyPI directory format. I'm a noob and just learned about Python package stuff tonight :D
Also [gdown](https://github.com/wkentaro/gdown) for pyproject.toml and `__main__.py` reference.
autotraders 2.3.5
A powerful spacetraders API
Requires Python: >=3.9

# Autotraders
[![Downloads](https://static.pepy.tech/badge/autotraders)](https://pepy.tech/project/autotraders)
[![Python package](https://github.com/cosmictraders/autotraders/actions/workflows/python-package.yml/badge.svg)](https://github.com/cosmictraders/autotraders/actions/workflows/python-package.yml)

A spacetraders API focused on automation and ease of use
## Usage
First you need a client, which can be generated 
```python
from autotraders import session
s = session.get_session("YOUR_TOKEN_HERE")
```
And now you're all set to use they actual API.

## Ships

```python
from autotraders.ship import Ship
from autotraders.session import get_session

# create a session here
session = get_session("YOUR TOKEN HERE")
ship = Ship("SYMBOL-Here", session)  # This makes an API request
ships = Ship.all(session)  # This also only makes one API request
ship.dock()
ship.refuel()
ship.orbit()  # All these functions make API calls (one each), but the line below doesn't make any
print(ship.fuel.current + "/" + ship.fuel.total)
```
## Contract
```python
from autotraders.faction.contract import Contract
from autotraders.session import get_session

# create a session here
session = get_session("YOUR TOKEN HERE")
contract = Contract("id-here", session)
contracts = Contract.all(session)
contract.accept()
print(contract.accepted) # True
contract.deliver("SHIP_SYMBOL", "ALUMINUM_ORE", 30)
contract.fulfill()
print(contract.fulfilled) # True
```