semvec/pypi-packages huggingface dataset:
djangonepal 0.0.9
A Django app that provides choices for adminstrative bodies of Nepal.
License: MIT
Requires Python: >=3.8

================
Django Nepal
================


Djangonepal is a Django app that provides information about the administrative bodies of Nepal. Currently it has
the names of seven provinces of Nepal, name of the districts inside each of the provinces and name of all the municipalities
( including Metropolitan, Sub-Metropolitan and rural Municipalities aka Gaun Palika) inside each districts.
Hope this saves your time while working on your web project based project for Nepal.



Quick start
-----------

1. After installing add "djangonepal" and 'django_extensions' to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...

        'djangonepal',
        'django_extensions',

        ...
    ]

2. Run ``python manage.py makemigrations djangonepal``

3. Run ``python manage.py migrate`` to create the models.

4. Add ``djangonepal.context_processors.data`` to your 'context_processors' (optional)

    'context_processors': [
        ...

        'djangonepal.context_processors.data'

        ...
        ]

5. Run ``python manage.py runscript load_data`` wait till the import finishes. This import will let 
   you use the data the way you want.

6. If you followed step 4 you should be able to render it in your template using 
        
            {% for i in province %}
            <p> {{i.name}} </p>
            {% endfor %}
        
    For district ``{{i.district}}``
    For VDC/Municipality/Metropolitan/Sub-Metropolitan ``{{i.municipality}}``

7. You could also register the model on your admin.py file with 

   
        from djangonepal.models import * 
        admin.site.register(Province)
        admin.site.register(District)
        admin.site.register(Municipality)

====================
Want to Contribute?
====================

Open to any feedbacks/pull requests. Feel free to `Ping Me Anytime <https://www.atitbimali.com.np/>`_,
Even if you are not a developer. Any valid resource or data in any format is appreciated. Everyone
will be credited for their  respective contributions.

================
NOTE:
================

Please check the source and published date of data before submitting any kind of information regarding
the package.

================
Future Releases
================

1. More information about each administrative divisions to be added.

2. Resource Map, Census data to be added.

3. Terrain,flora,fauna data to be added.

3. Rest API to be created and made public.
bs42frame 0.10
bs4 to pd.DataFrame
License: MIT
Keywords: webscraping,DataFrame,pandas,bs4


# bs4 to pd.DataFrame 

## Tested against Windows / Python 3.11 / Anaconda

## pip install bs42frame

```python
Parse HTML content and extract information using BeautifulSoup.

This function takes HTML content as input, parses it using BeautifulSoup, and extracts
information about the HTML structure, tag attributes, tag text, and the BeautifulSoup
object for each element found in the HTML.

Args:
	html (str, bytes, or file path): The HTML content to be parsed. It can be provided as
		a string, bytes, or a file path. If a file path is provided, the function will
		attempt to read the file.

Returns:
	pandas.DataFrame: A DataFrame containing the extracted information from the HTML.
		The DataFrame columns include 'aa_tag' (HTML tag name), 'aa_attrs' (list of tag
		attributes), 'aa_text' (text content of the tag), 'aa_soup' (BeautifulSoup object
		for the tag), 'aa_old_index' (original index of the tag), 'aa_key' (attribute
		key), and 'aa_value' (attribute value).

Example:
	from bs42frame import parse_html
	df = parse_html(
		html=r"C:\Users\hansc\Downloads\Your Repositories.mhtml"
	)
	#      aa_tag            aa_text                                          aa_soup  aa_old_index                     aa_key             aa_value
	# 1000   span  Import repository  [\r\n                Import repository\r\n\r\n]           274       ActionListItem-label                class
	# 1001     li                                                                  []           275               presentation                 role
	# 1002     li                                                                  []           275                       true          aria-hidden
	# 1003     li                                                                  []           275                       true  data-view-component
	# 1004     li                                                                  []           275  ActionList-sectionDivider                class
```