semvec/pypi-packages huggingface dataset:
serialkiller-MateusSF 0.0.1
A package for class serialization
License: MIT
Requires Python: >=3.6

# Serialkiller Package

### Introduction
This is a class serialization package. It contains the class
Serializer which can be used to both serialize and deserialize
objects.

### Package usage
Serializer class contains four static methods: ***serialize_,
deserialize_, serialize_many_, deserialize_many_***.

Methods followed by one underline indicates that it is a
static method and must have its arguments fully filled in
order to be called. It also indicates that this method has
"twin" method (same name but without the underline) that
is its partial method, i.e the "twin" method has some or all
arguments preset.

Code example:

    serializer = Serializer(
                    Person,
                    only=['id', 'name', 'age'],
                    ignore=['age']
                )

    person_dict = serializer.serialize(person_1)

    person_2 = serializer.deserialize(
                            {
                                'id': 1,
                                'name': 'MyName',
                                'age': 99
                            }
                        )

The code above shows an example of usage of the Serealizer
class. It serializes ***person_1*** into a ***dict*** and
deserializes the given dict into a Person class object.
Note that the serializer was created to serialize only ***id,
name and age*** attributes, ignoring ***age***. Although it
does not make any practical sense, it shows how the
serializer works. Still one could use this very serializer
discarding the ignoring list, as follows:

    person_dict_full = serializer.serialize_(person_1)

Even though the code above uses the same object created
earlier, note that it uses the ***serialize_*** method.
This time, we did not set ***only*** nor ***ignore*** bounds.

In order to be serialized, a class must have the class
attribute ***\_\_fields__***, as follows:

    class Person:
        __fields__ = ['id', 'name', 'age', 'surname']

        def __init__(id=0, name='', age=0, surname=''):
            self.id = id
            self.name = name
            self.age = age
            self.surname = surname
RPCLayout 2.1.3
Simple template API for Discord rich presence!
License: MIT
Requires Python: >=3.5

# RPCLayout

![](https://cdn.discordapp.com/attachments/954499110763892807/955216312999739433/gato-digitando.gif)

A simple way to make a Discord rich presence with API using JSON parser to make it.
Includes a multiple functions to help in the development with apis json

** RPCLayout Stop in Last Build v2.0.3, no more updates until 21/03/22. Reason: Making web for documentation. **

# Installation
Simple as possible use:
```sh
python -m pip install RPCLayout
```
or clone code and use at module.
# Versions - Stable
### Version 2.1.3
- Added a functions to returns macs with m1 chip, use _system() or _isM1()
Small changes in ```__test__```class.

See it in https://pypi.org/project/RPCLayout/2.1.3/
### Version 2.0.3
- Fixed _checkGameIsClosed(), now recieves a string. Usage:
```python
myGame = "CSGO.exe"
while True: # main loop
    if _checkGameIsClosed(myGame) is True: # if the Game is closed returns True
        destroy(rpc, text="Game Exiting... RPC Disconnected.") # called destroy() function for destroy the rpc and process.
    time.sleep(60) # loop 60 s (ideal 5 seconds)
```

See it in https://pypi.org/project/RPCLayout/2.0.3/

### Version 2.0.2
- Fixed _waitingForGame() function, now recieve a string and complete the loop if found the game. Usage:
```python
myGame = "CSGO.exe" # depending operative system
_waitingForGame(myGame) # If found it, the code will continue. If not check your game variable.
# and continue the code...
while True:
    ...
```

- ```__test__``` class
    + Fixed callback_os(), change parameters
    + Can import as: ```import RPCLayout.__test__```

See it in https://pypi.org/project/RPCLayout/2.0.2/

### Version 2.0.1
+ Added:
    - ```__test__``` class for test functions.
    - _system() - Return the operating system
    - _getpid() - Return the actual PID of the program
    - destroy() - Destroy the actual process and RPC.
    - Added more HTTP Responses Error for request_api() function

See it in https://pypi.org/project/RPCLayout/2.0.1/

### Version 2.0.0
Bugs fixed, import fixed for MacOS

See it in https://pypi.org/project/RPCLayout/2.0.0/

# Repositories Used
[pypresence](https://github.com/qwertyquerty/pypresence)
[RotMGRPC](https://github.com/neopkr/RotMGRPC)

# Why?
I want to make more simple or easier to make an Discord Rich Presence with API.JSON, this idea born in my another project: [RotMGRPC](https://github.com/neopkr/RotMGRPC) meanwhile i was thinking how to make this process more faster or simple.

Yeah, it's a totally random idea but here i am


## Requires:
pip install requests