Skip to main content

The kit-package which made for accounting science research

Project description

Accounting Kits

Recommend CONDA manage the dependencies.

This is a self-made package which target is help to deal with different problems in accounting research.

WARNING: This version is Still PREVIEW and UNSTABLE! ANY functions and classes COULD BE CHANGED (NAMES OR OTHERS) IN FUTURE!

1. Setup the package:

I recommend to install the package by conda-forge, or may cause error:

In rolling version(How ever the package itself would be stop from have dependencies), because I use conda to manage my package, but pip always try to corrupt my environment.

This make me could not put these following dependencies in setup.cfg, If there found any method to help me to manage the environment while could help you with dependencies, feel free to tell me, it is the first time for me to write the python package, thank you.

Here are Conda install packages:

certifi
numpy
pandas
pathos
requests
python-Levenshtein
thefuzz
rapidfuzz
sas7bdat
nltk
beautifulsoup4
fake-useragent
Cython
wordninja

You may install these special dependencies from pip only:

ratelimit
backoff

Check that some of other pack are recommend but not need:

selenium (pip)

then clone->install

git clone https://github.com/qihangZH/accountingkits.git
cd accountingkits
pip install .

If developing need:

#IF DEVELOPING
python setup.py develop

2. How if I need to use the single module But I find it use other modules?

Nice question, If really so, you may have to replace the code for single modules sometimes only uses some _BasicFuncs functions.

For example in FuzzyMatchT.py:

from .. import _BasicTools

To search in FuzzyMatch.py,you can find that, "_BasicFunc" result contains:

with pathos.multiprocessing.Pool(
        # for safer exception in multiprocess
        initializer=_BasicFunc.MultiprocessF.processes_interrupt_initiator
) as pool:
    ...

And the only function could be found:

def threads_interrupt_initiator():
    """
    Each pool process will execute this as part of its
    initialization.
    Use this to keep safe for multiprocessing...and gracefully interrupt by keyboard
    """
    signal.signal(signal.SIGINT, signal.SIG_IGN)

To replace it, you can directly put it in your need module and add some your own codes, however, I could not premise the _BasicFunc will not be refactored in future version.

# copy here
def threads_interrupt_initiator():
    """
    Each pool process will execute this as part of its
    initialization.
    Use this to keep safe for multiprocessing...and gracefully interrupt by keyboard
    """
    signal.signal(signal.SIGINT, signal.SIG_IGN)

with pathos.multiprocessing.Pool(
                # for safer exception in multiprocess
                initializer=threads_interrupt_initiator
        ) as pool:
    ...
    

3. Deprecation and Future Warnings

Any changes which cause Deprecation and Future Warnings will be placed here, mostly they cause version error.

If not, kindly send me email and I will show it in README.

However, Deprecation and Future warnings are unavailable for Preview/alpha/beta version

4.References

  1. This project includes code from the https://github.com/r-boulland/Corporate-Website-Disclosure, which is licensed under the MIT license. Precisely, the accountingkits/CrawlerApi/WayBackT.py The full text of the MIT license can be found in the CrawlerT/LICENSE file.

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

accountingkits-0.1.2.230818b0.tar.gz (23.6 kB view details)

Uploaded Source

Built Distribution

accountingkits-0.1.2.230818b0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file accountingkits-0.1.2.230818b0.tar.gz.

File metadata

File hashes

Hashes for accountingkits-0.1.2.230818b0.tar.gz
Algorithm Hash digest
SHA256 2f355b8ae6aa8975c6946dacc033e7acc125ead870a53acbaaa2ba6cf6822afe
MD5 28a58ace344b7fc95139486f6f1eb0ce
BLAKE2b-256 e4644e2ca575fed6723973f4b2cf75b6b4fd0d240ed65080ee90dba256ccfc93

See more details on using hashes here.

File details

Details for the file accountingkits-0.1.2.230818b0-py3-none-any.whl.

File metadata

File hashes

Hashes for accountingkits-0.1.2.230818b0-py3-none-any.whl
Algorithm Hash digest
SHA256 e51cca89952e69628a6fb966b6396c5c58e58e35daaf19c4ad5b2173fb9702b4
MD5 384121eaa54cbc676746d40298c6f52c
BLAKE2b-256 03c3a3ae8ae5beeec91b943fc769690e8ba3ba7a059cf8d289164e3ca0e728cc

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