semvec/pypi-packages huggingface dataset:
typegenerator 0.0.1
Python package to convert python dictionaries into other language types (Currently Typescript).
License: MIT License
Requires Python: >=3.8
Keywords: api,data,dictionary,object,python,type,typescript,typesystem

# Object Converter
Repository to convert Python dictionaries to Typescript Types. Input any full python dictionary, and receive as
output a fully formatted and TypeScript type for that dictionary!

# Example
```python
    import typegenerator as tg
    generator = tg.TypeGenerator()
    sample = {"1": "hello!", "2": 10, "3": "10/29/22", "4": True, "5": [1, "hi", False], "6": None,
              "7": {"8": 1, "9": 2, "10": {"11": True, "12": {"13": None}}}}
    generator.convert(sample, 'ts', verbose=True)
```
**Output:**
```typescript
type ABC = {
  1: string;
  2: number;
  3: string;
  4: boolean;
  5: any[];
  6: null;
  7: {
    8: number;
    9: number;
    10: {
      11: boolean;
      12: {
        13: null;
      }
    }
  }
}
```

# TODOs
* Handle the following types:
  * Tuples
  * List typing (not just any[])