semvec/pypi-packages huggingface dataset:
getfilenuitkapython 0.11
A function that locates files in python environments and compiled exe files (Nuitka)
License: MIT
Keywords: nuitka,locate,files

# A function that locates files in python environments and compiled exe files (Nuitka)

## [ nuitka ](https://nuitka.net/doc/download.html) is certainly the best py2exe- compiler, but it is not always easy to include additional files.Â 

The first time I tried that, the compiled EXE wasn't able to find the included files, and it took me some time to make all the necessary code adjustments.Â  This is why I wrote a little function that locates files in the mostÂ likely locations (python env/nuikta exe).

## pip install getfilenuitkapython 

This module contains a function called get_filepath which returns the full path to a file, given its filename. It uses the os and sys modules to search for the file in multiple locations.

```python
Parameters
----------
filename: A string representing the name of the file to locate.

Returns
----------
A string representing the full path to the file, if it is found.
If the file is not found in any of the locations, the function returns the filename itself.

Description
----------
The get_filepath function searches for the file in the following locations:

1. The directory containing the script that was invoked from the command line.
2. The directory containing the current module file (__file__).
3. The parent directory of the directory containing the script that was invoked from the command line.
4. The parent directory of the directory containing the current module file (__file__).
5. The directory containing the calling function (sys._getframe(1)).
6. The parent directory of the directory containing the calling function.
7. Search in PATH
8. Search in every folder in basedirs 

If the file is found in any of these locations, the function returns the full path to the file. If the file is not found in any of these locations, the function returns the filename itself.


from getfilenuitkapython import get_filepath
get_filepath('pythonw.exe')
Out[3]: 'C:\\ProgramData\\anaconda3\\envs\\dfdir\\pythonw.exe'
```
rapi-api 1.0.0
Rapi API for Python provides user level api using rapi runner.
License: MIT
Requires Python: >=3.7

# rapi-api-nodejs
## Quick Start
```python 
import rapi_api
from rapi_api import ConfigBuilder, Rapi
config = ConfigBuilder()    \
    .setTestSuites(["test1.json"])   \
    .addBrowser("http://url.to.selenium.server", {
        "browserName": "firefox",
    }).build()

rapi = Rapi(
    "path/to/rapi/runner", config)
report = rapi.run()
print(report.json)
```
## Documentation
[Python](https://hackmd.io/@Rapi/BJins7t72)
m-abac-anhnt 1.0.6
Thư viện xử lý kiểm tra quyền theo logic ABAC (Attribute-based access control)
License: MIT
Requires Python: >=3
Keywords: mobio,mobio-engine,m-abac

### ABAC Engine
Thư viện xử lý kiểm tra quyền theo logic ABAC (Attribute-based access control).


### Cài đặt:
```bash
 $ pip3 install m-abac
 ```

### Sử dụng:

##### Kiểm tra user có quyền thao tác hay không:
   ```python
    from mobio.libs.abac import PolicyDecisionPoint
    merchant_id = "1b99bdcf-d582-4f49-9715-1b61dfff3924"
    resource = "deal"
    # action = "UpdateFromSale"
    action = "ListFromSale"
    account_id = "704eac91-7416-497f-a17d-d81cfa2d3211"
    # thông tin user ko có thì để None 
    user_info = {
        "block": "KHDN",
        "scope_code": "MB##HN"
    }

    pdb = PolicyDecisionPoint(merchant_id=merchant_id, resource=resource, action=action, account_id=account_id,
                              user_info=user_info)
    result = pdb.is_allowed()
    if not result.get_allow_access():
        # trả về lỗi không có quyền truy cập 
   ```
#### Log - 1.0.0
    - release sdk