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

Uploaded Python 3

File details

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

File metadata

  • Download URL: moshimoshi-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 327b63da0df804abf2afe1953ac9e4029576b2d7bdb13c57d04aa4fe098141a6
MD5 51b65d3dd45a198f0f8bd66f3406a79f
BLAKE2b-256 34b643611757d9a6b9b80f2f15278f97dc7c312590be709d3c7f8fa172084c15

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