semvec/pypi-packages huggingface dataset:
mkcloud 0.1.0
通过童心制物云服务可以进行人工智能、聊天机器人、常用网络 api 获取等常用云服务。
License: MIT

# 童心制物云服务 mkcloud

## 目前提供的功能

### 聊天机器人

    `发消息 mkcloud.robot.chat('哈哈哈哈')`
    `切换中英文服务 mkcloud.robot.setLanguage('en')`

### MqTT功能

- 导入方式：
  
    `from mkcloud.mqtt import mqtt`

- 设置参数

  `mqtt.set_broker('mb1234','broker.emqx.io',1883)`

- MQTT连接

    `mqtt.connect()`

- 信息发送

    `mqtt.publish_message("topic", "messages")`

- 信息接收

    `def callback(topic, data): print("CallBack -Received", data, "topic:", topic)`
    `mqtt.set_callback(callback)`
    `mqtt.subscribe_message("topic1")`
    `mqtt.subscribe_message("topic2")`
parking-lot 1.0.3
A Python package to which allocate parking slot for Car.
License: MIT

This repository gives an overview of how we can design a basic parking lot in Python. It creates parking lot with given number of slots. The cars follow Greedy approach while being parked in the slots.


index.py = Main File(The file which you have to Run)
classes.py = The file where I declare and define my class and it's member function.
Function.py = The file where I declare and define non member function.
input.txt = The file which contains input.You can change according to your requirment. 


index.py script defines the following functions -

create_parking_lot n - Given n number of slots, create a parking lot

park car_regno car_color - Parks a vehicle with given registration number and color in the nearest empty slot possible. If there are no more empty slots available, it shows a message "Sorry, parking lot is full".

status - Prints the slot number, registration number and color of the parked vehicles.

leave x - Removes vehicle from slot number x

There are few query functions to retrieve slot number from registration number of car, get registration numbers of cars with particular color etc.

index.py can be run through shell or through file containing test cases. I did with file handling, In file input.txt all the test cases are there.You just need to run index.py,the desired output will be display in your screen.

Additional Functionality : 

I have added a feature by which you can extend the number of parking slot if you required at any instance of program.To perform this you will have to add a command in input file.(modify 10).This will add 10 more new slot.

I have added a feature by which You can check the available slot.To perform this you will have to add a command in input file.(display_avaiable_slot).This will show all free slot.