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 details)

Uploaded Python 3

File details

Details for the file moshimoshi-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: moshimoshi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Windows/10

File hashes

Hashes for moshimoshi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f721f62bc0648b69d50a0f47c58d8e6db89724e8ad5d350f495432e3def98590
MD5 5d81ca500205e8ff9c0cb2df80847885
BLAKE2b-256 cea9e82bca5208abc459eb41bdf123cc7dbb23e1591f2c3a1694a0b79b08ab13

See more details on using hashes here.

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