semvec/pypi-packages huggingface dataset:
ogb-lite 0.0.3
Open Graph Benchmark Lite (ogb_lite) is a subset of the ogb project. It supports library-agnostic loaders and it does not require torch.
License: MIT
Keywords: pytorch,graph machine learning,graph representation learning,graph neural networks

Open Graph Benchmark Lite (ogb_lite)
====================================

Open Graph Benchmark Lite (ogb_lite) is a subset of the ogb project. It supports library-agnostic loaders and it does not require torch. 

99.99% of the code is copied from the OGB project: 


* `https://github.com/snap-stanford/ogb <https://github.com/snap-stanford/ogb>`_

We only make some small changes such that you can use ogb_lite without installing torch.

Installation
------------

.. code-block:: bash

   pip install ogb_lite

Tutorial
--------

ogb_lite only contains three library-agnostic loaders: ``NodePropPredDataset``\ , ``LinkPropPredDataset``\ , and ``GraphPropPredDataset``.

**NodePropPredDataset:**

.. code-block:: python

   # coding=utf-8
   from ogb_lite.nodeproppred import NodePropPredDataset

   dataset = NodePropPredDataset(name="ogbn-proteins")

   split_idx = dataset.get_idx_split()
   train_idx, valid_idx, test_idx = split_idx["train"], split_idx["valid"], split_idx["test"]
   graph, label = dataset[0] # graph: library-agnostic graph object

   print(graph, label)
   print(train_idx, valid_idx, test_idx)

**LinkPropPredDataset:**

.. code-block:: python

   # coding=utf-8

   from ogb_lite.linkproppred import LinkPropPredDataset

   dataset = LinkPropPredDataset(name="ogbl-ppa")

   split_edge = dataset.get_edge_split()
   train_edge, valid_edge, test_edge = split_edge["train"], split_edge["valid"], split_edge["test"]
   graph = dataset[0]  # graph: library-agnostic graph object

   print(graph)
   print(train_edge, valid_edge, test_edge)

**GraphPropPredDataset:**

.. code-block:: python

   # coding=utf-8

   from ogb_lite.graphproppred import GraphPropPredDataset

   dataset = GraphPropPredDataset(name="ogbg-molhiv")

   split_idx = dataset.get_idx_split()
   train_idx, valid_idx, test_idx = split_idx["train"], split_idx["valid"], split_idx["test"]

   graph, label = dataset[0]  # graph: library-agnostic graph object
   print(graph, label)
   print(train_idx, valid_idx, test_idx)

Citing OGB
----------

If you use OGB datasets in your work, please cite the OGB paper (Bibtex below).

.. code-block:: HTML

   @article{hu2020ogb,
     title={Open Graph Benchmark: Datasets for Machine Learning on Graphs},
     author={Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, Jure Leskovec},
     journal={arXiv preprint arXiv:2005.00687},
     year={2020}
   }
ms-session 1.0.0
Library that allows logging into Microsoft accounts via requests
License: MIT
Requires Python: >=3.6

# `ms-session`

`ms-session` is a tiny Python library that provides a way to log in to your Microsoft account programatically in a `requests` `Session`. It is widely unknown why you would ever want to use this, but that's for you to determine. I just make the library.

## Usage

The usage is incredibly simple and straightforward. Just create a new `MSSession` object and pass it your creds.

```python
from ms_session import MSSession

session = MSSession("someone@example.com", "password")
```

The returned object is a subclass of `requests.Session` and has you logged in to your Microsoft account.

```python
"someone@example.com" in session.get("https://account.microsoft.com/")  # True
```

## Known issues

- Rarely (it seems to occur for Microsoft accounts that have not been logged into for a very long time), a required key may be missing from an API response that is required to be passed to the next. This will prevent you from logging in using `ms-session`. There may be a way further traverse the chain of requests needed to log in, but I have found that logging in to that account manually once seems to get it back in shape to be used with `ms-session`. If you figure anything out about combatting this, feel free to submit a PR
- Accounts protected by two-factor auth are not supported, and I have no plans to do so ever

## Special thanks

A huge thank you to [@Terrance](https://github.com/Terrance) and his [SkPy](https://github.com/Terrance/SkPy) library. He and his library were able to point me in the correct direction for understadning how tricky values such as `t` work.

The Chromium Dev Tools are your best friend when it comes to reversing services. Do not sleep on them.