semvec/pypi-packages huggingface dataset:
spyderDergiPark 0.0.9
A Python library that enables downloading articles from DergiPark (https://dergipark.org.tr) related to a topic or a search phrase.
Requires Python: >=3.6

A python library for searching and downloading articles from DergiPark which is a website where people can browse articles based on numerous filters . 

1. First, install a driver from the driver links listed here: https://pypi.org/project/selenium/

2. To download articles, you should run **searchAndDownload** method. There are a few parameters to consider: 
   1. topic: (default None) This is the topic you want to search for. It is limited with the topics listed in DergiPark. To access these topics and their corresponding links, check out 'topicLinkDict.pickle' file. It may be in a different path if specified. 
   2. searchPhrase: (default None) This is the phrase you want to search for. There is no limitation.
   3. maxArticle: (default None) DergiPark lists at most 9600 articles. If maxArticle is not specified, the code will download at most 9600 articles. You can change this parameter if you want to download less than 9600 articles. You must not give a number greater than 9600. 
   4. headless: (default True) If you want to see the browser while downloading, set it to False. 
   5. language: (default türkçe) Specify the article language. If the authors didn't specify the article language, this article won't be downloaded. You should give one language at a time. 
   6. path: (default None) Specify the where to download the articles. If not specified, creates an articles folder. 
   7. progress: (default True) Whether to see a progress bar while downloading. Set it to False if you don't want to see it. 
   8. console_logging: (default False) Whether you want to see an output in the console for each article downloaded. 
   9. driver_path: (default None) Specify the driver path. 
   
3. If you want to renew the topic dictionary, please call  refreshTopicPickle method with these parameters:
   1. dictPath: (default topicLinkDict.pickle) Specify the pickle you want to write the dictionary.
   2. driverPath: (default None) Specify the driver path.

All tests were conducted using chromedriver.
sample-package-xjg 0.0.2
A sample Python project
Requires Python: >=3.6, <4

# Example Package

Testing package layouts and import structure due to issues with circular imports in other packages. 

# Structure

## Layout

- Package underneath src directory
    - This avoids issues with accidentally running local code instaed of installed package when using python -m 
- Primary package code in `__main__.py`
    - No requirement for if `__name__` == `__main__` as `__name__` will always be `__main__` when this module is run

## Function calls

1. `__main__:main` calls `one` imported from `one.py` and `three` imported from `sub_package.three.py` 
2. `one` calls `two` imported from `two.py`
3. Both `one` and `two` call `module_and_function_name_match` imported from `module_and_function_name_match.py`
4. Both `one`, `two` and `three` call `test` imported from `module_and_function_name_match.py`

## Useful Details

- Modules import functions and modules using absolute explicit imports, using the name of the package then name of the module, then name of the function if required
    - e.g.: from package_name.module_name import function_name
        - Then function is called with `function_name()`
    - or: from package_name import module_name
        - Then function is called with `module_name.function_name()`
        
# Usage

## Installed as a CLI tool

1. Setup python venv: `python -m venv .env`
2. Activate venv: `source .env/bin/activate`
3. Install as editable package: `pip install -e .`
4. Run on cli with `sample_package`

This works due to entry_points option within `setup.py`. `sample_package` has been added as an executable to the path within this environment. 

## Installed as a package

1. Setup python venv: `python -m venv .env`
2. Activate venv: `source .env/bin/activate`
3. Install as editable package: `pip install -e .`
4. Run as package: `python -m sample_package`

## Installed and imported 

1. Setup python venv: `python -m venv .env`
2. Activate venv: `source .env/bin/activate`
3. Install as editable package: `pip install -e .`
4. Import into other python projects with `import sample_package`

## Run as standalone package without installation

1. Navigate to `src/`
2. Run as package: `python -m sample_package`


# Packaging to PyPi
json-tools-python 0.1.0
A tool for analysis json content with some key
Requires Python: >=3.6

# json_tools

A tool for analysis json content

## How to use

```python
import json_tools
test_data = {
    'a':{
        'b':{
            'c':'123',
            'd':{
                'c':123,
            },
            'e':[{'a':1}, {'b':2}, {'c':3}],
            'f':[
                {'a':
                    {'c':1}
                },
                {'b':
                    {'c':2}
                }
            ]
        }
    }
}
for ret in json_tools.search(test_data, 'c'):
    print(ret)
```
result:
```python
['a', 'b', 'c']
['a', 'b', 'd', 'c']
['a', 'b', 'e', 2, 'c']
['a', 'b', 'f', 0, 'a', 'c']
['a', 'b', 'f', 1, 'b', 'c']
```