Skip to main content

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

Project description

moshimoshi

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

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.

<iframe width="560" height="315" src="https://www.youtube.com/embed/ZlhwmiCT9ao" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

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.1.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for moshimoshi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c33a25e46a9b3356dcccf5c976db9723fe4cd183e241f246fc733c43371e65f
MD5 ba31f5911b95e954f6bff93ef6af62da
BLAKE2b-256 cbe9ac32f7a37e2a73fdeb28c020848840ba356a9c5e5d868cdb8f7730121214

See more details on using hashes here.

Provenance

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