semvec/pypi-packages huggingface dataset:
django-wikipedia-connector 0.0.1
A Django app for working with Wikipedia XML dumps.
Requires Python: >=3.10

# Django Wikipedia Connector #

The **Django Wikipedia Connector** is a Django app that can import a Wikipedia XML database dump into a database using
Django models. It was written to be used with the Greek Wikipedia XML dump, so it has the Greek word for "category"
harcoded in the code. If you want to use this for a different language, please open an issue and we can parametrise that
name.

## Installation ##

Install with `pip`:

```
pip install django-wikipedia-connector
```

## Import XML Dump ##

1.  Find the dump you want to work with at the [WikiMedia dumps backup index]. For example, for the Greek wikipedia dump
    dated 2025-05-01, the file was named `elwiki-20250501-pages-articles-multistream.xml.bz2` and it was 560.8 MB
    compressed.
2.  Extract. For that same example, the extracted file was name `elwiki-20250501-pages-articles-multistream.xml` and it
    was 3 GB uncompressed.
3.  With this app installed and migrations ran, you can import the dump with `./manage.py import_dump`, followed by the
    file path to the XML dump, e.g:

    ```
    ./manage.py import_dump /home/alice/elwiki-20250501-pages-articles-multistream.xml
    ```

### Import Options ###

By default, the code will first import all Categories, and then it will import all Articles and link each Article to its
Categories. Importing data to the database takes a lot of time, so you skip some imports, provided you understand the
consequences of skipping:

* Option `--skip-categories` will skip importing the categories. If you already have the categories in your database
  from a previous import, or you don't care about categories, you can save some time.
* Option `--skip-articles` will skip importing the articles. If you already have the articles in your database from a
  previous import, or you only care about categories, you can save some time.
* Option `--skip-categorisation` will skip linking Articles to their Categories. This is the most time consuming
  function of the code. If you are not interested in linking Articles to Categories, you can save a lot of time.

## Caveats ##

The code should have some way to delete pages from the database when they are deleted from the dump. This feature is not
yet available. The easiest way to work around this restriction is to manually truncate the `Article`, `Category` and
`ArticleCategory` tables in your database, prior to the import.

<!-- Links -->
[WikiMedia dumps backup index]: https://dumps.wikimedia.org/backup-index.html
ctksimplemessagebox 1.2.6
Python Messagebox to display current Infos or Errors.
Requires Python: >=3.6

## About

This is a simple Python Messagebox to display current Infos or Errors when using Customtkinter.
<br>

## Installation
```
  pip install ctksimplemessagebox
```
<br>

## How to call the Object
1. First you have to import the Messagecontainer 
```python
  from CTkSimpleMessagebox import MessageContainer
```

 Note: you should also import [customtkinter](https://pypi.org/project/customtkinter/). <br><br>

2. Now you can call the functions
```python
  MessageContainer.showError("title", "message")
```
<br>

## Example 1 - Calling the Error Messagebox
```python
  from CTkSimpleMessagebox import MessageContainer
  from customtkinter import CTk

  app = CTk()
  MessageContainer.showError("Error", "This is a Testerror.")
  app.mainloop()
```

## Example 2 - Calling the Info Messagebox
```python
  ...

  MessageContainer.showInfo("Info", "This is a Testinfo.")
  app.mainloop()
```