semvec/pypi-packages huggingface dataset:
sharepointing 0.2.2
A package to establish a connection to SharePoint site, and upload files through that connection
Requires Python: >=3.10

# Sharepointing
A library to establish connection to sharepoint. Then operate on this connection. Right now it's only possible to upload files.

This library depends on office 365 library: `Office365-REST-Python-Client`, and it will use active directory authentication to connect to SharePoint.

## Installation
In order to install this library you need to obtain an `SSH code`

Use pip to install this library from Github:

    pip install sharepointing

## Requirements
First you need to initialize the the sharepoint connection, which is an object.
You have two options, either use embedded credentials in environment variables:

`USERNAME` for office365 email

`PASSWORD` for office365 password


Then you can use this call:

    sp = sharepointing.sp_site(site_url)

The second option is to provide the credentials in the class call:

    sp = sharepointing.sp_site(site_url,username,password)

Once the object is created successfully, you can call use `upload_file` method to upload the files to sharepoiont

## decode_link function
This function will take any full link from SharePoint and can give back two two options
1 > The site_url
2 > The target folder
3 > Both as list
Instructions: Using your browser, open your SharePoint site and navigate to the target folder
Copy the link from the browser, and provide it here.

## Example 1 - upload_file
    site_url = "https://companysite.sharepoint.com/teams/teamsname"
    target = "/teams/teamsname/Shared Documents/General/"
    file = 'file.txt'
    sp = sharepointing.sp_site(site_url)
    sp.upload_file(file,target)

## Example 2 - decode_link
    full_link = "https://companysite.sharepoint.com/teams/teamsname/Shared%20Documents/Forms/AllItems.aspx?id=%2Fteams%teamsname%2FShared%20Documents%2FGeneral%2FSales%20Management%2F99%2E%20Resources%2F02%2E%20First%20Region&viewid=ecdf0311%2De700%2D4d9b%2Db7d3%2D6eaecaf18c76"
    site_url = decode_link(full_link,1)
    target = decode_link(full_link,2)

## Example 3 - download_file
    # Get the target url of where file is
    sp_url = "https://excellentproject.sharepoint.com/teams/MarketingTeam/Shared%20Documents/Forms/AllItems.aspx?id=%2Fteams%2FMarketingTeam%2FShared%20Documents%2FGeneral%2FMarketing%20Reports%2Fdata&viewid=ecdf0311dddd9dbddd7d3%2Dddddddsad"

    # Extract the site url and the target folder
    site_url,target_folder = decode_link(sp_url,3)

    # Define the file name 'myfile.csv' and construct its full path
    remote_file = os.path.join(target_folder,'myfile.csv')

    # Local folder path, can be referring to anything
    local_folder = ""

    # Initialize the SharePoint site object
    sp = sp_site(site_url)

    # Execute the recieve
    sp.download_file(remote_file,local_folder)
IdenDSS 0.2.6
DNA Signature Sequence (DSS) Identification and Application Software
Requires Python: >=3.8

# IdenDSS

This is a software for identifying taxon-specific signature sequence from a DNA database. Pleas refer to manual in [docs](docs) directory (only chinese for now).

Please refer to [https://github.com/Hua-CM/IdenDSS](https://github.com/Hua-CM/IdenDSS)

# Reference

- Hua, Z., Tian, D., Jiang, C., Song, S., Chen, Z., Zhao, Y., Jin, Y., Huang, L., Zhang, Z. and Yuan, Y. (2022), Towards comprehensive integration and curation of chloroplast genomes. Plant Biotechnol J. https://doi.org/10.1111/pbi.13923
- Hua, Z., Jiang, C., Song, S., Tian, D., Chen, Z., Jin, Y., Zhao, Y., Zhou, J., Zhang, Z., Huang, L., & Yuan, Y. (2022). Accurate identification of taxon-specific molecular markers in plants based on DNA signature sequence. *Molecular Ecology Resources*, 00, 1– 12. https://doi.org/10.1111/1755-0998.13697
fhm-unittest 1.0.1
A package for unittest
Requires Python: >=3.6


# fhm-unittest

A package for unittest. It will take two parameters where the first parameter will be the returned value and the second parameter will be the expected value.



### Installation Instructions
Using PIP via PyPI
```
pip install fhm-unittest
```
for installing on Google Colab:
```
! pip3 install fhm-unittest
```

### Usage
```
>>> import fhm_unittest as unittest
```
To test a function, call the output_test function as pass your returned value and expected value as parameters

```
>>> unittest.output_test(returned value, expected value)
```

### Example - 01
```
def even_odd_checker(number):
  if number % 2 == 0:
    return 'The number is even'
  else:
    return 'The number is odd'
```
```
>>> unittest.output_test(even_odd_checker(10), 'The number is even')
    Accepted
```

### Example - 02
```
def even_odd_checker(number):
  if number % 2 == 0:
    return 'even'
  else:
    return 'odd'
```
```
>>> unittest.output_test(even_odd_checker(10), 'The number is even')
    Not Accepted [Your output: even  |  Expected Output: The number is even]
```

### Example - 03
```
def even_odd_checker(number):
  if number % 2 == 0:
    return 'even'
  else:
    return 'odd'
```
```
>>> unittest.output_test(even_odd_checker(10), 'The number is odd')
    Wrong Answer [Your output: even  |  Expected Output: The number is odd]
```