Skip to main content

This is an tool box contains tools for mgedata. Some of code are non-originality, just copy for use. All the referenced code are marked, details can be shown in their sources

Project description

MGE tool

Some useful base tools for other mge packages, but without specific task.

Python Versions Version pypi Versions

Install

pip install mgetool

Contains

export

Store

Store files in batches.(无差别存储数据)

import

Call

Import files in batches.(无差别导入数据)

show

BasePlot

Draw picture quickly.(快速画图)

corr_plot

Draw correlation coefficient graph.(相关系数图)

tool

tt

from mgetool.tool import tt
tt.t
...
tt.t
tt.p

Record the time of this site, and print uniformly.(测试代码块时间)

time_this_function

Time the function(测试函数运行时间,@)

parallelize

Parallelize the for loop (并行化)

logg

Get the name of function(输出函数信息,@)

newclass

from mgetool.newclass import create

import numpy as np
def ff(x, y):
    print(y * 1000)
    return x

Foo = create("Foo", np.ndarray, lenn=dict, spam=1, fu=ff)
foo = Foo([1, 2, 3])
a = foo.fu(2, 4)

Build a simple class quickly.(No initialization parameters)(快速创建新类)

packbox

from mgetool.packbox import Toolbox

def func(a, b=1, c=2, name=4, **kwargs):
    print(a, b, c, name, kwargs)
    pass


to = Toolbox()

to.register("a", func, 1, 5, abss=3)
to.refresh("a", 3, 4, 6, name=3, abss=4)
to.a()

Build a toolbox and you can add function to it.(函数集合)

draft

from mgetool.draft import DraftPyx

bd = DraftPyx("hello.pyx")
bd.write()
a= bd.quick_import(build=True, with_html=True)
# bd.remove()

Build for .cpp or .pyx temporary .(编译cython和cpp ,自动创建setup.py)

Project details


Download files

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

Source Distribution

mgetool-0.0.77.tar.gz (60.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mgetool-0.0.77-py3-none-any.whl (66.6 kB view details)

Uploaded Python 3

File details

Details for the file mgetool-0.0.77.tar.gz.

File metadata

  • Download URL: mgetool-0.0.77.tar.gz
  • Upload date:
  • Size: 60.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for mgetool-0.0.77.tar.gz
Algorithm Hash digest
SHA256 4bbbca98f8506a1641d643289e8b0e3167ee5b0bb7837df4b6b12a3a07b6f689
MD5 71ac666e0d09090a823e1504d08a4034
BLAKE2b-256 55780a114c4a899df1139b62b11d7da5d5ef7babbdc31b04b8e21b08a9047f37

See more details on using hashes here.

File details

Details for the file mgetool-0.0.77-py3-none-any.whl.

File metadata

  • Download URL: mgetool-0.0.77-py3-none-any.whl
  • Upload date:
  • Size: 66.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for mgetool-0.0.77-py3-none-any.whl
Algorithm Hash digest
SHA256 6fa07bc6470ca828de9c6a7936d1f7dd5de179ab0b4e97f6ac518ebf6d4cea75
MD5 13b418116f70c3b2e2f307649efd43e1
BLAKE2b-256 39f06d3564acac7ab1866cede5d1bb320d34a44db50f97d9c4b931f2c02aa440

See more details on using hashes here.

Supported by

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