semvec/pypi-packages huggingface dataset:
shaclgen 3.0.0b1
Shacl graph generator: python program to generate template shacl graphs
License: MIT
Requires Python: <4.0.0,>=3.8.1
Keywords: Linked Data, Semantic Web, Python, SHACL, Shapes, Schema, Validate

SHACLGEN
========

Shaclgen takes either an instance graph/data graph (or multiple graphs) or schema(s) as input and
generates a basic shape file based on the classes and properties
present.

**Shape files from instance data:** By default, the input graph is
processed as a data graph (instance data).

**Shape files from ontologies:** If the input is a schema or ontology,
shaclgen generates a nested shape file: properties with rdfs:domain
defined in the ontology will be nested within the appropriate NodeShape.
rdfs:range definitions for XML and rdfs datatypes are included.

Added support for OWL constructions is planned.

* * * * *

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

Using pip: :

    pip install shaclgen


Command line use:
-----------------

    $ shaclgen [graph] [optional arguments]

Example usage: :

    $ shaclgen https://www.lib.washington.edu/static/public/cams/data/datasets/uwSemWebParts/webResource-1-0-0.nt

Command line arguments: :

    positional arguments:
    graph                 The data graph(s).

    optional arguments:
    -h, --help            show this help message and exit
    -o, --ontology        input file(s) or URL(s) is a schema or ontology
    -ns, --namespace      optional shape namespace declaration. ex: http://www.example.com exam
    -i, --implicit        use implicit class targets with RDFS
    -s SERIALIZATION, --serialization SERIALIZATION
                          result graph serialization, default is turtle. example:. -s nt

Serialization options:
        turtle = turtle
        ntriples = nt
        rdfxml = xml
        n3 = n3

Namespace Example usage: :

    $ shaclgen https://www.lib.washington.edu/static/public/cams/data/datasets/uwSemWebParts/webResource-1-0-0.nt -s nt


Namespace argument:
    The namespace argument is takes a full URL and prefix.

Namespace Example usage: :

    $ shaclgen https://www.lib.washington.edu/static/public/cams/data/datasets/uwSemWebParts/webResource-1-0-0.nt -ns http://www.example.org uwlib

Implicit class usage :

SHACL interprets shapes typed as `rdfs:Class` as the target class of that shape. This is called [Implicit Class Targets](https://www.w3.org/TR/shacl/#implicit-targetClass). 
By setting `-i` or `--implicit`, shaclgen will reuse the class definitions in the ontology (ie. instances of `rdfs:Class` or `owl:Class`) as shapes and not create new URIs.
Instances of `owl:Class` will be typed as `rdfs:Class` in the output.
Triples that tie the class to one of its parent classes with `rdfs:subclassOf` will be copied by default.

Example ontology input:

    ex:Person a owl:Class.

Example output without `-i`:

    ex:PersonShape a sh:NodeShape;
        sh:targetClass ex:Person .

Example output with `-i`:

    ex:Person a rdfs:Class; sh:NodeShape.


* * * * *

This project is still in development. Comments, questions, and issues
are welcome!

Contact alexiskeelie at gmail.com
instapytool 0.1.1
Send Instagram DMs using session ID automation with Selenium
License: MIT
Requires Python: >=3.7

# InstaPy-DM

InstaPy is a lightweight Python package that allows you to **send Instagram DMs using session-based login** and Selenium automation.

> ⚠️ This project is intended for **educational and research purposes** only. Use responsibly and in compliance with Instagram's terms of service.

---

## 🚀 Features

- 🔐 Login via Instagram session cookies (no password required)
- ✉️ Send direct messages to Instagram users
- 🧱 Modular design with FastAPI and Pydantic support
- 🧪 Ready for integration into larger automation pipelines

---

## 📦 Installation

```bash
pip install instapy-dm
```

---

## 🧠 Usage

### 1. Create a `DMRequest` and use `send_dm`

```python
from instapy import send_dm, DMRequest

data = DMRequest(
    username="your_instagram_username",
    session_id="your_session_id",
    target_username="target_user",
    message="Hello from InstaPy!"
)

response = send_dm(data)
print(response)
```

---

## 📁 Project Structure

```
instapy/
├── __init__.py         # Package exports
├── credentials.py      # BaseModel for session credentials
├── login.py            # Handles browser session login
└── dm.py               # Function to send a DM using credentials
```

---

## 🛠️ Requirements

- Python 3.7+
- Google Chrome installed
- ChromeDriver matching your browser version

### Optional ChromeDriver setup

You can download ChromeDriver manually from:
👉 https://chromedriver.chromium.org/downloads

Or install it via a manager like:

```bash
pip install webdriver-manager
```

---

## 💡 Example Use Cases

- Sending event invites to creators
- Networking outreach with verified session IDs
- Research in automation & bot development

---

## ⚠️ Important Notes

- This package uses session cookie-based authentication — you must extract a valid `sessionid` and `ds_user` cookie from an authenticated Instagram session.
- Do **not** use on accounts that risk violating Instagram’s automation policy.
- Login is headless by default but can be configured for debugging.

---

## 🔗 Useful Links

- [GitHub Repository](https://github.com/prajjwalnag/InstaPy)
- [Submit Issues](https://github.com/prajjwalnag/InstaPy/issues)
- [ChromeDriver Downloads](https://chromedriver.chromium.org/downloads)

---

## 📄 License

This project is licensed under the [MIT License](LICENSE).

---

## 🤖 Disclaimer

This tool automates browser actions on Instagram. Use it **only for educational or authorized purposes**. Automation may violate Instagram's terms — **use at your own risk**.