Coder Social home page Coder Social logo

ibonn / dammy Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 128 KB

Generate fake data for any purpose

Home Page: https://dammy.rtfd.io/

License: GNU General Public License v3.0

Python 99.80% Shell 0.11% Batchfile 0.09%
database dummy dummy-data-generator fake-data fake-data-generator library mock populate-databases python random sql synthetic-dataset-generation

dammy's Introduction

Hi there ๐Ÿ‘‹ I'm Ibon

Person programming

I am a Computer Science graduate by the Public University of Navarre. In my spare time I mantain some free software projects.

I am mainly interested in Machine Learning and Deep Learning, but I like learning about many other fields in computer science such as cryptography, software engineering and cybersecurity. I currently use Python as my main programming language as it is the most versatile and popular for ML/DL and my favorite tools/frameworks are:

Python Docker numpy PyTorch Keras OpenCV Visual Studio Code Pandas scikit-learn PySide/Qt PyTest MLFlow

If you have any questions, you can contact me by e-mail.

Stuff I made by myself

Simple face swapping using OpenGL

Application I created to strenghten my OpenCV knowledge and learn some 3D object manipulation using Python. Code available here.

SVG avatar package for Python

I created this package when I tried to add new svgs to the already existing py_avataaars package. As this task was too difficult to do, I forked the project and tried to make the required modifications to achieve this goal. When I noticed that a complete refactor was required, I decided that I would create the library from scratch, and here it is!

2D ePuck robot simulator

What do you do when no robots are available for one of your college assignments? You create a robot simulator! Yep, that is what I did, and it worked. It has some limitations due to time constraints, as I had to continue with the previously mentioned assignment. You can check it here.

Some stats

dammy's People

Contributors

ibonn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ocomsoft cjszhj

dammy's Issues

Constructor for EntityGenerator.

Hi there,

Can we have a constructor for an 'EntityGenerator' class?

from dammy.core import BaseGenerator
import random_address

class Address(BaseGenerator):
    def __init__(self):
        super(Address, self).__init__('VARCHAR(100)')

    def generate_raw(self, dataset=None):
        return random_address.random_address.real_random_address()

Let's say, I would like to assign properties of the above address to individual fields of a Person class like below:

from dammy import EntityGenerator
class Person(EntityGenerator):
    first_name = RandomName().upper()
    address = Address() # This is the class previously implemented
    Line1 = address.Street_number()
    Line2 = address.Street_Name()
    City = address.City()

for i in range(0, 10):
    print(Person())

However, when I try this, I am getting some issues like it's showing a generic object string rather than the actual value! I am trying to see if there's way that I can individually refer a created object's properties. Or as another alternative, can we have supporting methods in the 'class Person(EntityGeenrator):' that would create an Address object in the constructor and initialize with a value, and then we can refer the individual attributes like shown above (Line1, Line2, City etc)?

Hope this makes sense. Please do let me know in case you need any further details.

Thanks,
Raja

[ISSUE]: Using random-address in a profile

Hi there,

This library is very useful in our project and able to generate random test data. However, we came across a need to use random-address in order to generate addresses for a profile. While, generating the complete dataset, noticed that all rows have the same address. Could you please let us know if there's any way we can get a random_address for each record that is being generated?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.