semvec/pypi-packages huggingface dataset:
alarm-craft 1.0.1
A tool to create AWS CloudWatch Alarms for your resources with specified name and tags
Requires Python: >=3.9

# `alarm-craft` for AWS CloudWatch Alarms

[![Python - Version](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Falarm-craft%2Falarm-craft%2Fmain%2Fpyproject.toml&logo=python)](https://www.python.org/downloads/)
[![PyPI - Version](https://img.shields.io/pypi/v/alarm-craft)](https://pypi.org/project/alarm-craft/)
[![PyPI - License](https://img.shields.io/pypi/l/alarm-craft)](https://pypi.org/project/alarm-craft/)
[![CI for alarm-craft](https://github.com/alarm-craft/alarm-craft/actions/workflows/ci.yml/badge.svg)](https://github.com/alarm-craft/alarm-craft/actions/workflows/ci.yml)
![aws](https://img.shields.io/badge/-Amazon%20Web%20Services-232F3E.svg?logo=amazon-aws&style=flat)
![cloudwatch](https://img.shields.io/badge/Made%20for-Amazon%20CloudWatch%20Alarms-FF4F8B.svg?logo=amazon-cloudwatch&style=flat)

---

![alarm-craft logos](https://avatars.githubusercontent.com/u/172502625?s=200&v=4 "alarm-craft")

With modern architectures such as serverless and microservices, the number of resources managed in the cloud tends to increase, making monitoring a challenging task. `alarm-craft` is a tool designed to address this problem.

## Features

- **Bulk Generation**: Generates the necessary monitoring alarms in bulk with a single command.
- **Flexible Alarm Definition**: Allows flexible definition of alarm conditions, including metrics and thresholds.
- **Declarative Config**: Provides [declarative configurations](https://github.com/alarm-craft/alarm-craft/wiki/ConfigurationByExample) for monitoring targets using resource name or tag.
- **Integration with Your Deployment Pipeline**: A CLI tool written in Python that can be seamlessly [integrated](https://github.com/alarm-craft/alarm-craft/wiki/Automation) into the deployment pipeline.
- **DevOps**: By leveraging declarative configurations based on the tag strategy and integrating `alarm-craft` with the deployment pipeline, DevOps teams can automatically monitor newly deployed resources.

## Quick Start

1. Install python (>= 3.9), and install `alarm-craft`.
   ```bash
   pip install alarm-craft
   ```
1. Create a json file like below and save it as `alarm-config.yaml`
   ```yaml
   resources:
     lambda:
       target_resource_type: "lambda:function"
       alarm:
         metrics:
           - Errors
   ```
1. Execute the tool.
   ```bash
   alarm-craft
   ```
   By this execution, the `alarm-craft` creates Cloudwatch Alarms to detect `Errors` in all Lambda functions.

## Documentation

For detailed instructions and information on configuring the tool, refer to the [Wiki](https://github.com/alarm-craft/alarm-craft/wiki/Home#toc).
zatca-csr-generator 3.1.1
Zatca Csr Generator generates the certificate signing request for zatca phase2, It is takes informations and parameters from the user and returns the csr in base64 ready to submit to zatca

# Csr and Private Key generator for Zatca Phase2
Generate Private Key with EC Curve and CSR for the Zatca Phase2 for the complience CSID
## Installation

To use the Zatca Csr Generator, you need to have cryptography installed. You can install it using pip:

```shell
pip install zatca_csr_generator
```

# Usage
First, import the necessary modules:

Then, import and create an instance of the CsrGenerator class:
```
from zatca_csr_generator import zatca_csr
certificate=GenerateCSR()
```


# Loading an method to obtain private key and certificate signing request
To load an image from a file, use the load_image method:

1. csr_type 
   e.g for 'sandbox' |'simulation' | 'production'. 
2. C = country
    country with max 2 length.
3. CN = common name
4. O = organization
5. OU = organization unit
6. SN = Serial number e.g 
   1-name of the company|2-version|3-uuid
     
7. UID = Tax Registration No (15 Digits)
8. TITLE = Type of business e.g 1000,0100, 1100
   + B2B =0100
   + B2C= 1000
   + Both= 1100
9. CATEGORY = Type of business
10. ADDRESS  = Registered Business Address

```
privatekey,csr= certificate.generate_csr.(csr_type, C, CN, O, OU, SN, UID, TITLE, CATEGORY, ADDRESS)
```
privatekey will return the string for the private key and 

# Example

```
from zatca_csr_generator import zatca_csr

certificate = zatca_csr.GenerateCSR()


privatekey,csr = certificate.generate_csr("production","SA", "TST", "TST",
                                          "TST", "1-TST|2-TEST|3-uuid",
                                          "3210124145101243", "1100", "Information Technology", "RHSX46590")

print(privatekey)
print(csr)
```

# Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please create an issue or submit a pull request.


# License
This project is open source and licensed under the MIT License.

# Contact

For any questions or inquiries, please contact:

- Muhammad Bilal
- Email: bilaljmal@gmail.com
chatmol 0.2.3
A package for ChatMol
Keywords: chatmol

# ChatMol Python Package

ChatMol is a Python package that provides a seamless integration of large language models into PyMOL, enabling users to interact with PyMOL using natural language instructions. This robust tool simplifies PyMOL tasks and offers suggestions, explanations, and guidance on a wide range of PyMOL-related topics. ChatMol provides various interaction modes with PyMOL, including the PyMOL command line, Python, miniGUI chatbot, and web browsers.

## Installation

```bash
pip install chatmol
```

## Usage

Here are some examples of how to use the package:

```python
import chatmol as cm
output_chatmol_llm = cm.chatlite("download chain A of 3wzm and color it by secondary structure") # use the chatmol llm, free and no API key required
print(output_chatmol_llm)
```

```python
print(cm.defaul_client.gpt_model) # check the current ChatGPT model
output_chatgpt = cm.chat_with_gpt("download 4eb0 and highlight residue number 208") # use the GPT-3.5-turbo llm, API key required
print(output_chatgpt)
```

```python
print(cm.defaul_client.claude_model) # check the current Claude model
output_claude = cm.chat_with_claude("download 1pga from rcsb and show a transprant surface") # use the claude llm, API key required
print(output_claude)
```

You can send results to PyMOL:

```python
import chatmol as cm
ps = cm.start_pymol() # open a PyMOL session with XML-RPC server
ps.chatlite("download 1pga")

# send commands to PyMOL
ps.server.do("esmfold MTYKLILNGKTLKGETTTEAVDAATAEKVFKQYANDNGVDGEWTYDDATKTFTVTE, 1pga_esmfold") # make sure you have pymolfold plugin installed
```

enjoy!
tweet-fetcher 1.0
Python library to retrieve tweet data without consuming the API or using your X account.
Requires Python: >=3.6

# tweet_fetcher

tweet_fetcher is a Python library to retrieve tweet data without consuming the API or using your X account.

## Installation

You can install the package using pip:

```bash
pip install tweet_fetcher
```

## Usage

Here's an example of how to use the library:

```python
from tweet_fetcher import get_tweet_data

tweet_data = get_tweet_data("1465392570310217728")
print(tweet_data)
```

### Methods

- get_tweet_data(tweet_id_or_url)
  Retrieve tweet data given its ID (int or str) or URL.

### Parameters:

- tweet_id_or_url (str): The tweet ID (as int or str) or URL.

### Returns:

- dict: The tweet data in JSON format.

### Example:

```python
from tweet_fetcher import get_tweet_data

tweet_data = get_tweet_data("https://x.com/valen_vila00/status/1465392570310217728")
print(tweet_data)
```

## License

This project is licensed under the MIT License. See the LICENSE file for details.

## Author

Me.