Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Inti

Capture system from non scrapping data sources

Description

Package to download data and process datasets, not related to scrapping, like Microsoft Academic MAG and Scielo. For MAG, this package allows to download the data from azure and in parallel, dumps the data to MongDB collections. This allows too, create indexes for ElasticSearch database to perform search using the title of the document.

Installation

Dependencies

  • Install MongoDB:
    • Debian Based systems: apt install mongodb
    • RedHat Based systems: here
  • Install ElasticSearch: here
  • The other dependecies can be installed with pip installing this package.

Package

pip install inti

Usage

Exaple running save MAG in MongoDB

inti_mamagloader --mag_dir=/storage/colav/mag_sample/ --db=MA

Exaple running save MAG in ElasticSearch

inti_maesloader --mag_dir=/home/colav/mag/ --col_name=Papers --field_name=PaperTitle --index_name=mag

MongoDB Options requirement

There is a special requirement for mongodb server to allow run multithread sessions To avoid the error ok" : 0, "errmsg" : "cannot add session into the cache", "code" : 261, "codeName" : "TooManyLogicalSessions",

you need to start the server with the option

mongod --setParameter maxSessions=10000000 --config /etc/mongodb.conf

ElasticSearch Options requirement

in the file /etc/elasticsearch/elasticsearch.yml add

thread_pool.get.queue_size: 10000 thread_pool.write.queue_size: 10000

ElasticSearch disk options

With low disk space, this error can appear ('1 document(s) failed to index.', [{'index': {'_index': 'mag', '_type': '_doc', '_id': '9915517', 'status': 429, 'error': {'type': 'cluster_block_exception', 'reason': 'index [mag] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];'}, 'data': {'PaperTitle': '...'}}}])

solver it with this.

curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_cluster/settings -d '{ "transient": { "cluster.routing.allocation.disk.threshold_enabled": false } }' curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

MongoDB optimizations

increase the index creation memory to 6G of RAM to improve the performance(use this with caution) db.adminCommand({getParameter: 1, maxIndexBuildMemoryUsageMegabytes: 1}) db.adminCommand({setParameter: 1, maxIndexBuildMemoryUsageMegabytes: 6144})

Final notes

Be aware that running this package, mongodb producess a huge amount of informtation in the logs, please clean the file /var/log/mongodb.log (it could be more that 65G)

This is required to perform massive insertions in parallel!

License

BSD-3-Clause License

Links

http://colav.udea.edu.co/

Metadata

Release files for Inti 0.0.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Inti 0.0.0a0
File Size Uploaded Provenance Actions
Inti-0.0.0a0.tar.gz 12.9 kB Without provenance Details for Inti-0.0.0a0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Inti 0.0.0a0
File Interpreter ABI Platform Actions
Inti-0.0.0a0-py3-none-any.whl Python 3 none any Details for Inti-0.0.0a0-py3-none-any.whl

Total release size: 31.6 kB

Release files / Inti-0.0.0a0.tar.gz

Download URL Inti-0.0.0a0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
35f6da29c55ce9488ce35ecea733ba49a8978ca4fd0125c47483852760f88258
BLAKE2b-256 checksum
How to use checksums
fd4dca6f2f674b73e07cdd7b3163e0410f4f27d5a6536d66633ca4b587b978bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / Inti-0.0.0a0-py3-none-any.whl

Download URL Inti-0.0.0a0-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aebf6c0c8d441d728be28387c044a43acc0b18b33859f2d934c93af07a06c64
BLAKE2b-256 checksum
How to use checksums
6772303b80eeef7c171a141bf323be91327578871a79d4f047288452befc8903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Security for Inti 0.0.0a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page