semvec/pypi-packages huggingface dataset:
serialiJSON 0.0.2
A simple converter from complex objects to JSON
Requires Python: >=2.7

# SerialiJSON

`serialiJSON` is a tool that allows you to convert complex objects to JSON only by inheriting the BaseSerializable class.

### Installation

```
python pip -m install serialiJSON
```

### Usage

Import `BaseSerializable` class

``` python
from serialiJSON import BaseSerializable
``` 
Define your own class inheriting `BaseSerializable`

``` python
class myClass(BaseSerializable):
	...

myObject = myClass()
```

Convert to `JSON`

``` python
myObject.toJson()
```
An optional `indent`  can be passed into `toJson()` 

Property | Description | type | default
---------|-------------|------|--------
indent| set the indent to pretty-printed | Int | None (most compact)

### Compatible Types
Type	| List mode
--------|----------
str		|	[str]
int		|	[int]
bool	|	[bool]
float	|	[float]


### Real Example
``` python
from serialiJSON import BaseSerializable

class Item(BaseSerializable):
	def __init__(self, itemName, isAlive):
		self.itemName = itemName
		self.isAliva = isAlive

class Pet(BaseSerializable):
	def __init__(self, name, age, favItems):
		self.name = name
		self.age = age
		self.favItems = favItems

class Human(BaseSerializable):
	def __init__(self, name, age, pets):
		self.name = name
		self.age = age
		self.pets = pets

items = [
		Item("snow ball", False),
		Item("tree", True)
	]

pets = [
		Pet("Cat", 12, items), 
		Pet("Dog", 4, items)
	]

human = Human("name", 90, pets)

print(human.toJson(indent=4))
```
### pretty-printed
``` json
{
	"name": "name",
	"age": 90,
	"pets": [
		{
			"name": "Cat",
			"age": 12,
			"favItems": [
				{
					"itemName": "snow ball",
					"isAliva": false
				},
				{
					"itemName": "tree",
					"isAliva": true
				}
			]
		},
		{
			"name": "Dog",
			"age": 4,
			"favItems": [
				{
					"itemName": "snow ball",
					"isAliva": false
				},
				{
					"itemName": "tree",
					"isAliva": true
				}
			]
		}
	]
}
```

### non pretty-printed
``` json
{"name": "name", "age": 90, "pets": [{"name": "Cat", "age": 12, "favItems": [{"itemName": "snow ball", "isAliva": false}, {"itemName": "tree", "isAliva": true}]}, {"name": "Dog", "age": 4, "favItems": [{"itemName": "snow ball", "isAliva": false}, {"itemName": "tree", "isAliva": true}]}]}
```
Bionic-py 1.0.2
Bionic is Python Framework for crafting beautiful
Requires Python: >=3.6

<img width="50%" src="https://raw.githubusercontent.com/shajin-sha/Bionic/0b55f69a4a7933d0e47339ad592f55c45ebb246e/icons/Bionic.svg" />
 
> Bionic is Python Framework for crafting beautiful, fast user experiences for web and is free and open source.

### doc : https://bionic-py.github.io/Bionic-Documentation/

<!-- GETTING STARTED -->
## Getting Started

This is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.

### Prerequisites
This is an example of how to list things you need to use the software and how to install them.
### Meet system requirements :
* git
* python,pip
* vs code,live server
### Installation
  ```sh
  git clone https://github.com/bionic-py/Bionic.git
  ```



### Fast results
 Bionic is fast. It's powered core python without any extra dependencies.
 Bionic offers stateful hot reload, allowing you to make changes to your code and see the results instantly without restarting your app or losing its state.
 
 <img src="https://github.com/shajin-sha/Bionic/blob/master/icons/ex/ezgif-2-b8da2812a4c0.gif?raw=true" />