Skip to content

vinipsmaker/export_pacman_to_mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

import_pacman_to_mongo.py

import_pacman_to_mongo is a Python 3 script that will gather information about your local pacman database (using the pacman executable), convert the information to a nice and queryable format and upload it to MongoDB ({"db": "pacman", "collection": "packages"}).

Dependencies

The script dependencies:

  • Python 3.
  • python-dateutil.
  • python-pymongo.
  • en_US.UTF-8 must be installed, but it doesn't need to be the default locale.
  • The locale you use to run the script within must be any UTF-8-based locale.

ROADMAP

  • Parse command-line arguments.
    • Support to different MongoDB database IDs.
    • Support to different MongoDB collection IDs.
    • Output data to JSON. Dates must be handled correctly.
  • Define a JSON schema to help dude to understand what fields dude should expect in the documents.
  • Rename name to _id (?).
  • Gather package's origin (repo).

LICENSE

The script is lincensed under the MIT license. I don't care about its use.

About

A simple script to import your pacman database to MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages