semvec/pypi-packages huggingface dataset:
pypse 0.0.1
A compiler for Pseudocode written in python

# [Py](#)thon [Pse](#)udocode Compiler

## Introduction

PsPse is a interpreted compiler for teaching purposes.

Features:

* Compile codes in AS-Level Computer Science Syllabus
* Portable with no environemt requirements
* Available in Windows and Linux
* Continuously developing

I am a senior high student learning A2 Computer Science currently, and I am new to compilers. Feel free to raise issues or contribute.

![demo_screenshot](screenshots/demo_screenshot.png)

## Why?

Pseudocode is used to express ideas without truly writing code. However,

* AS-Level has specific grammar for this language
* AS-Level International Test marks based on the grammar
* There is no compiler for it, and there is no way to test it or execute it.

As a result, there is a clear need to write such compiler, also as a project of mine for interest. :smirk:

## Get Started

First, Clone the repo in terminal:

```
git clone https://github.com/HankelBao/PyPse
```

Now, you will have the PyPse folder in your current path. CD to PyPse/bin/ and you will have `pypse.bin` and `pypse.exe` under the folder.

If you are using Windows, 

```
.\pypse.exe ..\test\test.5.pse
```

If you are using Linux, 

```
.\pypse.bin ..\test\test.5.pse
```

If you see the *Hello World!* message showing up just like the demo, you are ready to go!

## Usage

Remember, you should always use `pypse.bin` for linux and `pypse.exe` for windows.

Pseudocode File ends in **.pse**, so you should create a file with such extension for execution.

Write your own pseudocode and execute it!

## Progress

- [ ] Warnings and Errors
- [ ] Full types support
    - [x] INT
    - [x] REAL
    - [x] STRING
    - [x] BOOL
    - [ ] More...
- [x] Declaration
- [x] Arrays
- [ ] Dicts
- [x] Custom Types
- [x] Debug Block
- [x] Assign
- [x] Output
- [x] Input
- [x] IF...
- [x] WHILE...
- [x] REPEAT...
- [x] FOR...
- [x] Procedure...
- [x] CALL...
- [x] FUNCTION...
- [x] RETURN...
- [x] CASE...
- [ ] More Features...


## Contributing

If you want to see the debug info for the compiler, call the command with *--debug*

For example

```
.\pypse.exe ..\test\test.5.pse --debug
```

Feel free to report issues and make contributions

## Promote

Spread it around your classes if you also find the need for such a compiler!

Thanks for your support.
dockercomposeHelp 1.0.0
A Python wrapper for generating a compose file

# dockercomposeHelp
dockercomposeHelp is a python package for building complex docker-compose files quickly and without errors. It only supports Compose file version 3.
## Usage:
It follows a very simple usage procedure:
```python
from dockercomposeHelp.compose import Compose
my_compose = Compose() #create a compose instance
service_db = Service('db') #create a service instance
service_db.image('mysql')
service_db.command('--default-authentication-plugin=mysql_native_password')
service_db.restart('always')
service_db.environment({'MYSQL_ROOT_PASSWORD': 'example'})
service_db.ports(['8080:8080'])

my_compose.add_service(service_db) #add service to compose
my_compose.make_compose() #output compose
```
The above code snippet will produce the following yaml file:
```yaml
services:
  db:
    command: --default-authentication-plugin=mysql_native_password
    environment:
      MYSQL_ROOT_PASSWORD: example
    image: mysql
    ports:
      - 8080:8080
    restart: always
version: '3.7'
```

## To be added:
 - service.deploy.rollback_config
 - service.deploy.update_config
 - service.pid
 - service.secrets
 - service.security_opt
 - service.stop_grace_period
 - service.stop_signal
 - service.sysctls
 - service.tmpfs
 - service.ulimits
 - service.userns_mode
## Unsupported:
 - service.links -- LEGACY FEATURE