semvec/pypi-packages huggingface dataset:
fxq-commons 1.1.1
Common python utilities and scripts for fxq labs
License: MIT

# FXQLabs-OSS Commons

This repository is a common codebase shared by many projects in the FXQLabs ecosystem.

It contains collections of classes and functions that provide useful functionality when building
out python apps.

Any re-usable part of an application is abstracted and brought into the commons library for re-use.

### Getting Started
Please see the repository [WIKI](https://bitbucket.org/fxqlabs-oss/fxq-commons/wiki/browse/) for further information on getting started

### Installing

Simply install the python module using 
```bash
pip install fxq-commons
```

## Contributing

Contributions are most welcome to the project, please raise issues first and contribute in response to the issue with a pull request.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://bitbucket.org/fxquants/fxq-ioc-core/downloads/?tab=tags). 

## Authors

* [Jonathan Turnock](https://bitbucket.org/Jonathan_Turnock/) - *Initial work*

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
computercraft 0.3.0
Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!
License: MIT
Keywords: computercraft minecraft

# Pythonized CC Tweaked (ComputerCraft) API

**Warning**: CPython can't build safe sandboxes for arbitrary untrusted code
[(read more)](https://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html).
Never use code in this repo if you don't trust your players!

1. Download and install wheel from github releases

    ```sh
    pip install computercraft-*.whl
    ```

2. Enable localhost in mod server config

    In case of singleplayer it's located inside your saves folder.
    In case of multiplayer check your server folder.

    Edit `computercraft-server.toml`

    ```toml
    [[http.rules]]
		host = "127.0.0.0/8"
		action = "allow"  # change here deny to allow
    ```

3. Start python server:

    ```sh
    python -m computercraft.server
    ```

4. In minecraft, open up any computer and type:

    ```sh
    wget http://127.0.0.1:8080/ py
    py
    ```

    Now you have python REPL in computercraft!
    To quit REPL type `exit()` and press enter.

`py` is short Lua program that interacts with the server.
`cc` module contains almost everything *as is* in ComputerCraft documentation:

```python
from cc import disk, os

disk.eject('right')
print(os.getComputerLabel())
```

Opening a file:

```python
from cc import fs

with fs.open('filename', 'r') as f:
    for line in f:
        print(line)
```

Waiting for event (`os.captureEvent` instead `os.pullEvent`):

```python
from cc import os

timer_id = os.startTimer(2)
for e in os.captureEvent('timer'):
    if e[0] == timer_id:
        print('Timer reached')
        break
```

Using modems:

```python
from cc import peripheral

modem = peripheral.wrap('back')
listen_channel = 5
# this automatically opens and closes modem on listen_channel
for msg in modem.receive(listen_channel):
    print(repr(msg))
    if msg.content == 'stop':
        break
    else:
        modem.transmit(msg.reply_channel, listen_channel, msg.content)
```

Using parallel:

```python
from cc import parallel, os

def fn():
    os.sleep(2)
    print('done')

parallel.waitForAll(fn, fn, fn)
```

Importing in-game files as modules:

```python
from cc import import_file

p = import_file('/disk/program.py')  # absolute
m = import_file('lib.py', __file__)  # relative to current file
```

More examples can be found in repository.
love-three 1.1.0
A package for all those who love the number 3.
License: MIT
Requires Python: >=3.6.0


# three.py
A package dedicated to the love of 3. 

This is silly personal project inspired by the equally silly JavaScript library [five.js](https://github.com/jackdclark/five) by [Jack Clark](https://github.com/jackdclark/).

## How to install

```
pip install love-three
```

## Usage examples
Begin by importing the three module into your code.
```
>>> import three
```

The module can be used to perform:

**arithmetic**
```
>>> three.three() + three.three() 
6
```
```
>>> three.squared()
9
```
```
>>> three.cubed()
27
```

**boolean expressions**
```
>>> a = 2
>>> if three.is_three(a):
...     print("a equals three :)")
... else:
...     print("a does not equal three :(")
... 
a does not equal three :(
```

**filter, map, and reduce**
```
>>> values = [1, None, 3, "beans", False, 3]
>>> three.filter(values)
[3, 3]
>>> three.map(values)
[3, 3, 3, 3, 3, 3]
>>> three.reduce(values)
3   
```

**novelty and humor**
```
>>> three.leches()
['Condensed', 'Evaporated', 'Heavy cream']
```
```
>>> three.stooges()
['Larry', 'Curly', 'Moe']
```

## Development setup
All the code needed is contained within:
```
three.py
```

## How to contribute
Contributions are encouraged and welcomed!

1. Fork the repo 
2. Create a branch for your new feature (```git checkout -b feature/my-cool-feature```)
3. Commit your changes (```git commit -am feature/my-cool-feature```)  
4. Push to the branch (```git push origin feature/my-cool-feature```)
5. Create a new Pull Request

## Meta
Distributed under the MIT license. See [LICENSE.txt](https://github.com/JasonTurley/three/edit/master/LICENSE.txt) for more information.