semvec/pypi-packages huggingface dataset:
zipfile38 0.0.3
Read and write ZIP files - backport of the zipfile module from Python 3.8

|pypi|

A backport of the zipfile module from Python 3.8, which contains notable improvements such as the "strict_timestamps" keyword argument (which enables the creation of reproducible zip archives).

installation::

    pip install zipfile38

usage:

.. code:: python

    if sys.version_info >= (3, 8):
        import zipfile
    else:
        import zipfile38 as zipfile

---

shout out to `Thomas Kluyver's backport for 3.6 <https://gitlab.com/takluyver/zipfile36>`_ and `Markus Scheidgen's backport for 3.7 <https://github.com/markus1978/zipfile37>`_.

.. |pypi| image:: https://img.shields.io/pypi/v/zipfile38.svg
   :target: https://pypi.org/project/zipfile38/
idena 0.2.2
Idena RPC client
Requires Python: >=3.6,<4.0

.. Idena Client documentation master file, created by
   sphinx-quickstart on Wed Dec  2 12:50:15 2020.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Idena Client
============

.. image:: https://travis-ci.com/iRhonin/idena.py.svg?branch=main
    :target: https://travis-ci.com/iRhonin/idena.py

This is Python wrapper for Idene Node.

* Highly inspired by `Web3.py <https://github.com/ethereum/web3.py>`_ and `cookiecutter-pypackage <https://github.com/briggySmalls/cookiecutter-pypackage>`_.

Installation
------------

Idena.py can be installed using ``pip`` as follows:

.. code-block:: shell

   $ pip install idena

For the development, clone the repository then:

.. code-block:: shell

   $ poetry install


Using Idena
-----------

This library depends on a connection to an Idena node and there are 2 ways to configure them. 

Calling `client.init` 
*********************

.. code-block:: python

   >>> from idena import client
   >>> client.init('http://localhost:9009/', 'api-key')


Setting environment variables
*****************************

Set `IDENA_RPC_NODE` and `IDENA_API_KEY` envars:

.. code-block:: sh

   $ export IDENA_RPC_NODE=http://localhost:9009/
   $ export IDENA_API_KEY=api-key

Getting Blockchain Info
-----------------------

.. code-block:: python
   
   >>> client.blockchain.get_last_block()
      
      Block(coinbase='0xbe854231db69ab042073b7ff8309ae3ee265a40f', 
         hash='0xa88e6ab305d7ee311ad2de35338cdbf7e664d860709e5a53f0307baeeaa6f968', 
         parentHash='0xe324a208892241e0294e5a6334965660375dda7a3ad8d8a42a5f3f2ef2857a22', 
         height=2159398, 
         timestamp=1606904853, 
         root='0xd874709bdd4c6fcd95e2e531cc07a4ce42ab23334dfd12ceb45350535b36664c', 
         identityRoot='0x9f3661f19e13d4860f2f2f1610abbbaf86abc8adf1a2781b371189e683745a97', 
         ipfsCid=None, 
         transactions=None, 
         flags=['OfflinePropose'], 
         isEmpty=False, 
         offlineAddress='0x0df427ad7e1906ab4fcc5fd31118932256f5dc7a')
pymathtest 0.1.1.dev4
A tool that can randomly generates simple add and subtract questions.
Requires Python: >=3.4
Keywords: maths question python

Help on module simple_maths_questions:

NAME
    simple_maths_questions - # --coding: utf-8 --

FUNCTIONS
    format_a_number(num)
        格式化数字的显示方式，如果是负数，在数字的两边加上()
    
    gen_one_question(min_number, max_number, num_of_numbers)
        生成一道题目
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :return: 结果list
    
    gen_one_question_not_negative(min_number, max_number, num_of_numbers)
        生成一道非负结果的测试题目
        
        保证算式中的数字和计算结果都不为负数。
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :return: 结果list
    
    gen_operation_symbol()
        随机生成运算符号
        
        随机生成'+'或'-'，用于构建题目中的算式。
        
        :return: str: 生成的运算符号
    
    gen_question_with_answers(min_number, max_number, num_of_numbers, the_quantity, negative_flag)
        生成包含答案的指定数量的题目
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :param the_quantity: int型，生成的测试题目数量
        :param negative_flag: 题目中是否允许出现负数的标志
        :return: 生成包含答案的题目dict，key：题目， value：答案
    
    gen_questions(min_number, max_number, num_of_numbers, the_quantity, negative_flag)
        生成指定数量的题目
        
        :param min_number: int型，算式中允许出现的最小数字
        :param max_number: int型，算式中允许出现的最大数字
        :param num_of_numbers: int型，组成算式的数字数量
        :param the_quantity: int型，生成的测试题目数量
        :param negative_flag: 题目中是否允许出现负数的标志
        :return: 生成的题目list
    
    main(min_number, max_number, num_of_numbers, the_quantity, negative_flag, display_answer)
    
    trim_parameters(first_num, second_num, num_of_nums, the_quantity, negative, bottom_limit, top_limit, number_limit)
        对用来生成算式的参数进行剪裁
        
        使得各参数合法，并且不会造成过大计算负载。
        
        :param first_num: int型，算式中允许出现的最小或最大数字
        :param second_num: int型，算式中允许出现的最小或最大数字
        :param num_of_nums: int型，组成算式的数字数量
        :param the_quantity: int型，生成的题目数量，最小值为1，最大值为常量MAX_QUANTITY所规定数值
        :param negative: 是否允许出现负数的标志
        :param bottom_limit: int型，算式中允许出现的最小数字的下限，最小不能小于常量MIN_NUMBER_LIMIT所规定数值
        :param top_limit: int型，算式中允许出现的最大数字的上限，最大不能大于常量MAX_NUMBER_LIMIT所规定数值
        :param number_limit: int型，组成算式的数字数量上限，最大不能大于常量MAX_NUMBER_OF_NUMBERS所规定数值
        :return: tuple，经过剪裁后合法的参数：最小数字，最大数字，组成算式的数字数量，题目数量

DATA
    MAX_NUMBER_LIMIT = 100000
    MAX_NUMBER_OF_NUMBERS = 5
    MAX_QUANTITY = 200
    MIN_NUMBER_LIMIT = -100000