GithubHelp home page GithubHelp logo

Comments (5)

JonasMedu avatar JonasMedu commented on June 20, 2024 1

@lk-geimfari _("datetime.datetime") works nicely.
ref:

from mimesis.locales import Locale
from mimesis.schema import Field, Schema


_ = Field(Locale.EN)

schema = Schema(schema=lambda: {
    "year": 2021,
    "datetime": _("datetime.datetime", start=2021, end=2021),
    "name": _("text.word"),
    "company": _("company"),
    "target_value": _("integer_number", start=15200.0, end=1e10),
    "timestamp": _("timestamp", posix=False),
    "version": _("version", pre_release=True),
    "owner": _("stock_name"),
})
example = schema.create(iterations=10000)

edit: not quite sure if i can close topic :)

from mimesis.

lk-geimfari avatar lk-geimfari commented on June 20, 2024 1

It is better to leave this issue open, because I did not fix the bug yet (since it is a bug). I'll close this issue on my own.

from mimesis.

lk-geimfari avatar lk-geimfari commented on June 20, 2024

@JonasMedu Can you try this, please: _("datetime.datetime")?

from mimesis.

lk-geimfari avatar lk-geimfari commented on June 20, 2024

@ngnpope I see that you've contributed a lot to mimesis lately, so maybe you'll find this bug interesting. I've fixed this issue in #1140, but my solution is too ugly (and too dumb) to merge it to master. Maybe you can solve this problem gracefully than I did.

from mimesis.

stale avatar stale commented on June 20, 2024

This issue has been automatically marked as stale because it has not had activity. It will be closed if no further activity occurs. Thank you for your contributions.

from mimesis.

Related Issues (20)

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.