Skip to main content

call a function in any python scripts using a formated string or json

Project description

moshi moshi~

call a function in any python scripts using a formated string or json

TLDR

pip install moshimoshi
from moshimoshi import moshi
import json

moshi('flows.jobseeker:start', 123, sex="male")

async def foo():
    await moshi.moshi('flows.jobseeker:start', 123, sex="male")

json_format = json.dumps({
    "call": 'flows.jobseeker:start',
    "args": [123],
    "kwargs": {
        "sex": "male"
    }
})

moshi(json_format)

Why it is calling 'Moshi Moshiii ~'?

It is the most kawaii way of call something, no exception to python function. This comes from my waifu named 'Kocho Shinobu', Demo Slayer.

⛑ Spoil Alert: This Video contain scenes and conversation of deep episodes.

Kocho Shinobu Moshi Moshi]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

moshimoshi-0.2.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page